/* ============================================
   Berger & Weiss Rechtsanwalte
   Style Sheet v3 - Minimal / Literary
   Inspired by: cermakschwarz.com, crabl.at, ainedter.com
   ============================================ */

/* Self-hosted fonts (GDPR-compliant) */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cardo-regular-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cardo-regular-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cardo';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cardo-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cardo';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/cardo-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/cardo-bold-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/cardo-bold-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   Custom Properties
   ============================================ */
:root {
  /* Default: Warm (coral) */
  --color-accent: #f29380;
  --color-accent-hover: #e87a64;
  --color-bg: #faf9f7;
  --color-bg-alt: #ffffff;
  --color-text: #222222;
  --color-text-muted: #777777;
  --color-border: #e5e2dd;
  --color-overlay: rgba(20, 20, 18, 0.95);

  /* Typography */
  --font-display: 'Cardo', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font: var(--font-body);

  /* Scale */
  --text-sm: 0.85rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: clamp(1.3rem, 1.1rem + 0.5vw, 1.6rem);
  --text-2xl: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
  --text-hero: clamp(3rem, 2rem + 6vw, 7rem);
  --text-intro: clamp(1.15rem, 1rem + 0.4vw, 1.4rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --content-narrow: 680px;
  --content-wide: 1080px;
  --header-h: 72px;
  --radius: 2px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 250ms;

  /* Section */
  --section-gap: var(--space-3xl);
  --radius-lg: 6px;
}

[data-theme="dark"] {
  --color-bg: #141413;
  --color-bg-alt: #1a1a18;
  --color-text: #e0ddd8;
  --color-text-muted: #8a8780;
  --color-border: #2c2b28;
  --color-overlay: rgba(10, 10, 8, 0.97);
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

ul, ol { list-style: none; }

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

address { font-style: normal; }

input, textarea, select {
  font: inherit;
  color: inherit;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================
   Layout
   ============================================ */
.content-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.content-wide {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Kept for inner pages that still use .container */
.container {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding: var(--section-gap) 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  max-width: var(--content-narrow);
  margin: 0 auto;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header.scrolled {
  background: var(--color-bg);
}

.header-inner {
  width: 100%;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

.logo-img {
  height: var(--header-h);
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .logo-img {
  filter: invert(1);
  mix-blend-mode: screen;
}

.main-nav { display: none; }

.nav-list {
  display: flex;
  gap: var(--space-xl);
}

.nav-list a {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-text);
}

/* (header-actions removed -- merged into header-right) */

.lang-toggle {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  padding: 2px 6px;
}

.lang-toggle:hover { color: var(--color-text); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-text-muted);
}

.theme-toggle:hover { color: var(--color-text); }

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.mobile-nav.open { opacity: 1; pointer-events: auto; }

.mobile-nav-list { text-align: center; }

.mobile-nav-list a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: #e0ddd8;
  padding: var(--space-sm) 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease), color 200ms ease;
}

.mobile-nav.open .mobile-nav-list a { opacity: 1; transform: translateY(0); }
.mobile-nav.open .mobile-nav-list li:nth-child(1) a { transition-delay: 50ms; }
.mobile-nav.open .mobile-nav-list li:nth-child(2) a { transition-delay: 100ms; }
.mobile-nav.open .mobile-nav-list li:nth-child(3) a { transition-delay: 150ms; }
.mobile-nav.open .mobile-nav-list li:nth-child(4) a { transition-delay: 200ms; }

.mobile-nav-list a:hover { color: var(--color-accent); }

/* ============================================
   Hero + Scroll Title
   ============================================ */
.hero-wrapper {
  position: relative;
  margin-top: var(--header-h);
}

.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Gradient at bottom of hero for text readability */
.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 100%);
  pointer-events: none;
}

/* The title element -- GSAP animates left + top from hero center to content-narrow */
.scroll-title {
  position: absolute;
  z-index: 5;

  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  will-change: transform;
  /* JS sets initial top/left */
}

.scroll-title .accent {
  color: var(--color-accent);
}

/* When title has moved onto the light background */
.scroll-title.on-light {
  color: var(--color-text);
  text-shadow: none;
}

/* Tagline below Klarheit on hero -- fades out on scroll */
.hero-tagline {
  position: absolute;
  z-index: 5;
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  /* JS sets position */
}

/* ============================================
   Intro Section
   ============================================ */
.section-intro {
  position: relative;
  /* Space for the scroll-title: title height + 24px offset + 40px gap to subtitle */
  padding-top: calc(var(--text-hero) + 64px);
  padding-bottom: var(--section-gap);
}

.hero-sub {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

/* Side-by-side: text left, partners photo right */
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.intro-text {
  font-family: var(--font-display);
  font-size: var(--text-intro);
  line-height: 1.75;
  color: var(--color-text);
  max-width: 60ch;
  margin-bottom: var(--space-xl);
}

.partner-names {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.partner h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: 2px;
}

.partner-title {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
}

.partner-focus {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.intro-right img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius);
}

@media (max-width: 767px) {
  .intro-layout {
    grid-template-columns: 1fr;
  }

  .intro-right {
    order: -1;
  }

  .partner-names {
    flex-direction: column;
    gap: var(--space-lg);
  }

  /* On mobile: no GSAP, so position title/tagline statically over the hero */
  .scroll-title {
    position: absolute;
    bottom: 4rem;
    left: var(--space-lg);
    top: auto !important;
  }

  .hero-tagline {
    position: absolute;
    bottom: 2.5rem;
    left: var(--space-lg);
    top: auto !important;
    text-align: left;
  }

  .section-intro {
    padding-top: var(--space-xl);
  }
}

.text-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  margin-top: var(--space-lg);
  transition: color var(--duration) var(--ease);
}

.text-link:hover {
  color: var(--color-accent-hover);
}

/* ============================================
   Section Headings
   ============================================ */
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xl);
}

/* ============================================
   Competence List
   ============================================ */
.competence-list {
  border-top: 1px solid var(--color-border);
}

.competence-list li {
  border-bottom: 1px solid var(--color-border);
}

.competence-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-lg) 0;
  gap: var(--space-xl);
  transition: padding-left var(--duration) var(--ease);
}

.competence-list a:hover {
  padding-left: var(--space-sm);
}

.competence-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  transition: color var(--duration) var(--ease);
}

.competence-list a:hover .competence-name {
  color: var(--color-accent);
}

.competence-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: right;
  flex-shrink: 0;
}

/* ============================================
   Team
   ============================================ */
.team-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.team-member img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  filter: grayscale(15%);
  transition: filter var(--duration) var(--ease);
}

.team-member:hover img {
  filter: grayscale(0%);
}

.team-member h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: 2px;
}

.team-role {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
}

.team-focus {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================
   News List
   ============================================ */
.news-list {
  border-top: 1px solid var(--color-border);
}

.news-item {
  display: block;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left var(--duration) var(--ease);
}

.news-item:hover {
  padding-left: var(--space-sm);
}

.news-item time {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 4px;
}

.news-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.35;
  transition: color var(--duration) var(--ease);
}

.news-item:hover h3 {
  color: var(--color-accent);
}

/* Article card grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.article-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration) var(--ease);
}

.article-card:hover {
  border-color: var(--color-accent);
}

.article-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.article-card-body {
  padding: var(--space-lg);
  flex: 1;
}

.article-card-body time {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-xs);
}

.article-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.3;
  transition: color var(--duration) var(--ease);
}

.article-card:hover h3 {
  color: var(--color-accent);
}

.article-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: var(--space-sm);
}

@media (max-width: 767px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Contact Block
   ============================================ */
.contact-block {
  display: flex;
  gap: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.contact-col p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

.contact-col a {
  color: var(--color-text-muted);
}

.contact-col a:hover {
  color: var(--color-accent);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-right {
  display: flex;
  gap: var(--space-lg);
}

.footer-right a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-right a:hover {
  color: var(--color-text);
}

/* ============================================
   Cookie Banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-xl);
  transform: translateY(100%);
  transition: transform var(--duration) var(--ease);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner .cookie-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.cookie-banner p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-actions button {
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
}

#cookieAccept {
  background: var(--color-accent);
  color: #fff;
}

#cookieAccept:hover {
  background: var(--color-accent-hover);
}

#cookieReject {
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

#cookieReject:hover {
  border-color: var(--color-text-muted);
}

/* ============================================
   Page Hero (inner pages)
   ============================================ */
.page-hero {
  padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-xl);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.page-hero p {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
}

/* ============================================
   Buttons (kept for inner pages)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius);
  transition: all var(--duration) var(--ease);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* ============================================
   Kept for inner pages: story, practice detail, form, etc.
   ============================================ */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-3xl);
  align-items: start;
}

.story-text p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-top: var(--space-lg);
}

.story-aside { position: sticky; top: calc(var(--header-h) + var(--space-xl)); }

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.story-stat-number {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.story-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.values-grid .card {
  padding: var(--space-lg) 0;
  border-top: 2px solid var(--color-accent);
}

.values-grid .card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.values-grid .card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-item { padding: var(--space-lg); }

.value-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.value-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.value-item p { color: var(--color-text-muted); font-size: var(--text-sm); }

.timeline { position: relative; margin-top: var(--space-xl); padding-left: var(--space-xl); }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--color-border); }
.timeline-item { position: relative; padding-bottom: var(--space-xl); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: calc(-1 * var(--space-xl) - 4px); top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); }
.timeline-year { font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); margin-bottom: 4px; }
.timeline-item h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; margin-bottom: 4px; }
.timeline-item p { color: var(--color-text-muted); }

.practice-section { padding: var(--space-2xl) 0; border-bottom: 1px solid var(--color-border); }
.practice-section:last-child { border-bottom: none; }
.practice-header { display: flex; align-items: flex-start; gap: var(--space-md); margin-bottom: var(--space-lg); }
.practice-header h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; }
.practice-content { display: block; }
.practice-content p { color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-md); }
.practice-sidebar h4 { font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-accent); margin-bottom: var(--space-sm); }
.practice-sidebar ul { margin-bottom: var(--space-lg); }
.practice-sidebar li { padding: var(--space-xs) 0; color: var(--color-text-muted); font-size: var(--text-sm); border-bottom: 1px solid var(--color-border); }
.practice-sidebar li:last-child { border-bottom: none; }

.practice-contact {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
}

.card-icon { width: 40px; height: 40px; color: var(--color-accent); flex-shrink: 0; }
.card-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); margin-top: var(--space-xl); }
.form-group { margin-bottom: var(--space-lg); }
.form-group label { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-xs); }
.form-group input, .form-group textarea, .form-group select { width: 100%; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group .error-msg { font-size: 0.8rem; color: #d32f2f; margin-top: 4px; display: none; }
.form-group.has-error input, .form-group.has-error textarea { border-color: #d32f2f; }
.form-group.has-error .error-msg { display: block; }
.form-success { display: none; padding: var(--space-xl); background: rgba(242, 147, 128, 0.08); border: 1px solid var(--color-accent); border-radius: var(--radius); text-align: center; }
.form-success.show { display: block; }

.contact-info h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; margin-bottom: var(--space-lg); }
.contact-info-item { display: flex; gap: var(--space-md); margin-bottom: var(--space-lg); }
.contact-info-item svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; margin-top: 3px; stroke: currentColor; fill: none; stroke-width: 2; }
.contact-info-item h4 { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a { color: var(--color-text-muted); }
.contact-info-item a:hover { color: var(--color-accent); }
.map-container { width: 100%; margin-top: var(--space-lg); }
.map-container iframe { display: block; width: 100%; height: 280px; border: 0; border-radius: var(--radius); }

.legal-content { padding: var(--space-2xl) 0; }
.legal-content h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; margin-top: var(--space-2xl); margin-bottom: var(--space-md); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: var(--text-base); font-weight: 600; margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.legal-content p { color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-md); }
.legal-content ul { list-style: disc; padding-left: var(--space-xl); margin-bottom: var(--space-md); }
.legal-content li { color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-xs); }
.legal-placeholder { background: rgba(242, 147, 128, 0.06); border: 1px dashed var(--color-accent); border-radius: var(--radius); padding: var(--space-xl); text-align: center; color: var(--color-accent); font-weight: 500; }

/* Team kept for inner page */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-xl); margin-top: var(--space-xl); }
.team-card { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 3/4; background: var(--color-border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md); overflow: hidden; }
.portrait-initials { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-text-muted); opacity: 0.3; }
.team-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; margin-bottom: 2px; }
.team-card .team-title { font-size: var(--text-sm); color: var(--color-accent); font-weight: 500; }
.team-card .team-spec { font-size: var(--text-sm); color: var(--color-text-muted); }
.team-detail { display: none; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-xl); margin-top: var(--space-md); text-align: left; }
.team-detail.active { display: block; }
.team-detail h4 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; margin-bottom: var(--space-md); }
.team-detail p { color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-md); }


/* ============================================
   Section Labels & Utility Classes
   ============================================ */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.form-label-optional {
  font-weight: 300;
  color: var(--color-text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 768px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
}

@media (max-width: 767px) {
  .team-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .competence-desc { display: none; }

  .contact-block {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .contact-layout { grid-template-columns: 1fr; }
  .practice-content { grid-template-columns: 1fr; }
  .story-layout { grid-template-columns: 1fr; }
  .story-aside { position: static; }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .team-row {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-image img { height: 40vh; }

  .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }

  .cookie-banner .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-actions { justify-content: center; }
}
