/* ============================================================
   Fonts (self-hosted)
   ============================================================ */

@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('fonts/BarlowCondensed-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

@font-face { font-family: 'Ubuntu'; src: url('fonts/Ubuntu-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }

/* ============================================================
   LENUS — Design System
   ============================================================ */

:root {
  /* Background */
  --color-bg-light:       #f4ecf0;
  --color-bg-card:        #f9f4f7;
  --color-light:          #f9f4f7;

  /* Greys / Dark */
  --color-dark-1:         #1D1E24;
  --color-dark-2:         #2B2C35;
  --color-dark-3:         #4D4F5F;
  --color-dark-4:         #8e909b;

  /* Blues */
  --color-blue-1:         #323C52;

  /* Highlight */
  --color-highlight:      #1C92BA;
  --color-highlight-dark: #157fa3;

  /* Typography scale */
  --text-xs:   0.8rem;
  --text-sm:   0.9rem;
  --text-base: 1rem;
  --text-md:   1.1rem;
  --text-lg:   1.3rem;
  --text-xl:   1.8rem;
  --text-2xl:  2.5rem;
  --text-3xl:  3.2rem;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  80px;

  /* Radius */
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: 0.25s ease;
}


/* ============================================================
   Reset & Base
   ============================================================ */

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

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

body {
  font-family: 'Barlow Condensed', sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-dark-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ============================================================
   Container
   ============================================================ */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ============================================================
   Header
   ============================================================ */

section {
  scroll-margin-top: 88px;
}

header {
  background: rgba(29, 30, 36, 0.70);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.lenus-brand {
  font-family: 'Ubuntu', sans-serif;
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-light);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--color-highlight);
}


/* ============================================================
   Hero
   ============================================================ */

#hero {
  background-color: var(--color-bg-light);
  padding: 100px 100px var(--space-xl);
}

#hero h1 {
  font-size: clamp(2rem, 4vw, var(--text-3xl));
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-blue-1);
  margin-bottom: 20px;
  max-width: 900px;
}

#hero h1 span {
  color: var(--color-highlight);
}

.hero-subtext {
  font-size: var(--text-lg);
  color: var(--color-dark-3);
  line-height: 1.65;
  margin-bottom: 100px;
  max-width: 700px;
}

.hero-lottie-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  background: var(--color-bg-card);
  border: 1px solid rgba(29, 30, 36, 0.06);
  box-shadow: 0 2px 10px rgba(29, 30, 36, 0.10);
  border-radius: 0;
  overflow: hidden;
}

.hero-lottie-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  gap: 0;
  padding: 32px 32px;
  text-decoration: none;
  border-right: 1px solid rgba(29, 30, 36, 0.06);
  transition: background var(--transition);
}

.hero-lottie-item:last-child {
  border-right: none;
}

@keyframes heroCardFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-lottie-item.visible {
  animation: heroCardFadeIn 1200ms ease 200ms both;
}

.hero-lottie-item:hover {
  background: rgba(29, 30, 36, 0.04);
  cursor: pointer;
}


.hero-lottie-header {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-bottom: 24px;
}

.hero-lottie-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.hero-lottie-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-dark-1);
}

.hero-lottie-anim {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 400 / 258;
  align-self: center;
}

.hero-cta-label {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-blue-1);
}

.cta-mailto-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  background: var(--color-highlight);
  border-radius: 999px;
  padding: 5px 12px 8px 12px;
  margin-left: 2px;
  font-size: 0.9em;
  transition: background var(--transition), transform var(--transition);
}

.cta-mailto-link:hover {
  background: var(--color-highlight-dark);
  transform: translateY(-1px);
}

.hero-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}


/* ============================================================
   loesungen Section
   ============================================================ */

#loesungen {
  background-color: var(--color-bg-light);
  padding: var(--space-md) 0 var(--space-xl) 0;
}

#loesungen h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-blue-1);
  margin-bottom: var(--space-xs);
}

.loesungen-intro {
  font-size: 1.2rem;
  color: var(--color-dark-3);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  max-width: 1100px;
}

.loesungen-outro {
  margin-top: var(--space-md);
}

.loesungen-outro a {
  color: var(--color-highlight);
  text-decoration: none;
}

.loesungen-outro a:hover {
  text-decoration: underline;
}


#loesungen .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}


/* ============================================================
   Service Card — Base
   ============================================================ */

.service-card {
  scroll-margin-top: 90px;
  background-color: var(--color-bg-card);
  border-radius: 0;
  border: 1px solid rgba(29, 30, 36, 0.06);
  box-shadow: 0 2px 10px rgba(29, 30, 36, 0.10);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: 0 2px 15px rgba(29, 30, 36, 0.18);
}

/* ============================================================
   Wide Card — Content left / Lottie right
   ============================================================ */

.service-card-wide .card-flex {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* Content — left panel */
.service-card-wide .card-flex .card-content {
  flex: 1;
  min-width: 0;
  padding: 32px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

/* Lottie — right panel */
.lottie-container {
  flex-shrink: 0;
  width: 440px;
  padding: 46px 32px 32px 32px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: transparent;
}

.lottie-container svg {
  transform: scale(1) translateY(-8px);
}


/* ============================================================
   Card Typography
   ============================================================ */

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

.card-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-blue-1);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: var(--text-base);
  color: var(--color-dark-3);
  line-height: 1.7;
}

.card-icon img {
  width: 51px;
}


/* ============================================================
   Toggle Button
   ============================================================ */

.card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-highlight);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap var(--transition);
  align-self: flex-start;
}

.card-toggle:hover {
  gap: 9px;
}

.card-toggle svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.card-toggle.open svg {
  transform: rotate(180deg);
}


/* ============================================================
   Expandable Panel
   ============================================================ */

.card-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-expand-inner {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 32px 40px 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ============================================================
   Expand CTA Top
   ============================================================ */

.expand-cta-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.expand-cta-top .expand-cta-label {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-blue-1);
  margin: 0;
  margin-right: 4px;
}


/* ============================================================
   Benefit List (Deep Dive)
   ============================================================ */

.deep-dive-content h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.benefit-list li {
  position: relative;
  padding-left: 28px;
  font-size: var(--text-base);
  color: var(--color-dark-3);
  line-height: 1.6;
}

/* Der Haken in deiner Highlight-Farbe */
.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-highlight);
  font-weight: 700;
  font-size: 1.1rem;
}

.benefit-list li strong {
  color: var(--color-blue-1);
  font-weight: 600;
  display: block; /* Packt den Titel über den Text für bessere Scannbarkeit */
  margin-bottom: 2px;
}

.expand-examples {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.expand-examples-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-blue-1);
}

.expand-examples a:first-of-type {
  margin-top: -16px;
}

.expand-examples-asterisk {
  font-size: inherit;
  font-weight: 400;
  vertical-align: baseline;
  margin-left: 1px;
}

.service-card .expand-examples-footnote {
  font-size: 14px;
  margin-top: 2px;
}

.expand-examples a {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-highlight);
  text-decoration: none;
}

.expand-examples a:hover {
  text-decoration: underline;
}

/* Anpassung der Panel-Höhe (da die Liste länger ist als die Steps) */
.card-expand.open {
  max-height: 1100px; /* Erhöht, damit der neue Text Platz hat */
}



/* ============================================================
   Buttons
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  background-color: var(--color-highlight);
  color: #fff;
  transition:
    background-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-highlight-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(28, 146, 186, 0.35);
}


/* ============================================================
   einblick Section
   ============================================================ */

.einblick-intro {
  color: var(--color-dark-4);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.einblick-asterisk {
  font-size: 0.75rem;
  vertical-align: super;
  margin-left: 1px;
}

.einblick-footnote {
  font-size: 0.8rem;
  color: var(--color-dark-4);
  margin-top: 1rem;
}

.einblick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.beispiel-tile {
  display: block;
  text-decoration: none;
  background: var(--color-bg-card);
  border-radius: 0;
  border: 1px solid rgba(29, 30, 36, 0.06);
  box-shadow: 0 2px 10px rgba(29, 30, 36, 0.10);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.beispiel-tile:hover {
  box-shadow: 0 4px 24px rgba(29, 30, 36, 0.22);
}

.beispiel-tile-inner {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.beispiel-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue-1);
}

.beispiel-tile h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-blue-1);
  margin: 0;
}

.beispiel-tile p {
  font-size: 0.88rem;
  color: var(--color-dark-4);
  line-height: 1.5;
  margin: 0;
}

.beispiel-link {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-highlight);
}


/* ============================================================
   Kontakt Section
   ============================================================ */


/* ============================================================
   Active nav link (subpages)
   ============================================================ */

nav a.nav-active {
  color: var(--color-highlight);
}


/* ============================================================
   Subpage sections
   ============================================================ */

.subpage-section {
  padding: var(--space-lg) 0;
  background: var(--color-bg-light);
}

.subpage-section--alt {
  background: var(--color-bg-card);
  border-top: 1px solid rgba(29, 30, 36, 0.06);
}

.subpage-section h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-blue-1);
  margin-bottom: -0.5rem;
}


/* ============================================================
   Über mich
   ============================================================ */

.ueber-mich-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-lg);
}

.ueber-mich-photo {
  position: static;
  margin-top: 8px;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-card);
  border: 1px solid rgba(29, 30, 36, 0.06);
  box-shadow: 0 2px 10px rgba(29, 30, 36, 0.10);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ueber-mich-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ueber-mich-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-blue-1);
  line-height: 1.1;
  margin: 0;
}

.ueber-mich-role {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-highlight);
  margin: 0;
  margin-top: -12px;
}

.ueber-mich-text {
  font-size: var(--text-base);
  color: var(--color-dark-3);
  line-height: 1.75;
  margin: 0;
}

.ueber-mich-stationen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(29, 30, 36, 0.08);
}

.ueber-mich-stationen-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-blue-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

.ueber-mich-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ueber-mich-list li {
  font-size: var(--text-sm);
  color: var(--color-dark-3);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.ueber-mich-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-dark-4);
}


/* ============================================================
   Screen-reader only utility
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   Footer
   ============================================================ */

footer {
  background: var(--color-dark-1);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: var(--space-md) 0;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-dark-4);
  text-align: center;
  letter-spacing: 0.02em;
}

.footer-link {
  color: var(--color-dark-4);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--color-highlight);
}

/* ── Kontakt-Seite ── */

.kontakt-page-section {
  padding: var(--space-xl) 0;
}

.kontakt-page-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-xl);
  align-items: start;
}

.kontakt-page-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-highlight);
  margin-bottom: var(--space-sm);
}

.kontakt-page-heading {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-blue-1);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.kontakt-page-sub {
  font-size: var(--text-md);
  color: var(--color-dark-3);
  line-height: 1.7;
  max-width: 460px;
}

.kontakt-page-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(29, 30, 36, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.kontakt-page-person {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.kontakt-page-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

.kontakt-page-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-blue-1);
}

.kontakt-page-rolle {
  font-size: var(--text-sm);
  color: var(--color-dark-4);
  margin-top: 2px;
}

.kontakt-page-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.kontakt-page-btn {
  align-self: flex-start;
}

.kontakt-page-links-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kontakt-page-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  color: var(--color-highlight);
  text-decoration: none;
  padding: 0;
}

.kontakt-page-link:hover {
  color: var(--color-highlight-dark);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .kontakt-page-layout {
    grid-template-columns: 1fr;
  }

  .kontakt-page-heading {
    font-size: var(--text-2xl);
  }
}

/* ── Impressum ── */
.impressum-content {
  max-width: 680px;
  margin-top: var(--space-lg);
}

.impressum-content h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-blue-1);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.impressum-content h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-blue-1);
  margin-top: var(--space-md);
  margin-bottom: 6px;
}

.impressum-content p {
  font-size: var(--text-base);
  color: var(--color-dark-3);
  line-height: 1.7;
}

.impressum-intro {
  font-size: var(--text-base);
  color: var(--color-dark-3);
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.impressum-content a {
  color: var(--color-highlight);
  text-decoration: none;
}

.impressum-content a:hover {
  color: var(--color-highlight-dark);
}


/* ============================================================
   Focus / Accessibility
   ============================================================ */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: 3px;
}


/* ============================================================
   Hamburger Button (hidden on desktop)
   ============================================================ */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  #hero h1 {
    font-size: 2.6rem;
  }

  .lottie-container {
    width: 360px;
    padding: 20px;
  }

  .service-card-wide .card-flex .card-content {
    padding: 20px;
  }

  /* ── Über mich: schmälere Foto-Spalte ── */
  .ueber-mich-layout {
    grid-template-columns: 220px 1fr;
    gap: var(--space-lg);
  }
}

/* ============================================================
   Responsive — Tablet (≤ 900px)
   ============================================================ */

@media (max-width: 900px) {
  /* ── Hero lottie: 2 columns on tablet ── */
  .hero-lottie-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-lottie-item:nth-child(2) {
    border-right: none;
  }

  .hero-lottie-item:nth-child(3) {
    border-top: 1px solid rgba(29, 30, 36, 0.06);
    border-right: none;
    grid-column: 1 / -1;
  }

  .hero-lottie-anim {
    max-width: 260px;
  }

  /* ── Service cards: stack on tablet ── */
  .service-card-wide .card-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .service-card-wide .card-flex .card-content {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 24px var(--space-md) var(--space-md);
  }

  .lottie-container {
    width: 100%;
    height: 300px;
    padding: 24px 60px 16px;
  }

  /* ── scroll-margin for sticky header ── */
  section {
    scroll-margin-top: 60px;
  }

  /* ── Über mich: stack auf schmalem Tablet ── */
  .ueber-mich-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .ueber-mich-photo {
    position: static;
    margin-top: 0;
    max-width: 300px;
  }

  .photo-placeholder {
    aspect-ratio: 3 / 4;
    max-height: 320px;
  }
}


/* ============================================================
   Responsive — Mobile (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --space-xl: 56px;
  }

  /* ── Header & Nav ── */
  header .container {
    height: 48px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo img {
    height: 22px;
  }


  .nav-hamburger {
    display: flex;
    padding: 4px;
  }

  .nav-hamburger span {
    width: 20px;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    background: rgba(29, 30, 36, 0.97);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    z-index: 99;
  }

  nav ul.open {
    display: flex;
  }

  nav a {
    font-size: var(--text-base);
    padding: 14px 24px;
    display: block;
    width: 100%;
  }

  /* ── Hero ── */
  #hero {
    padding: 56px 0 32px;
  }

  #hero h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
  }

  .hero-subtext {
    font-size: 0.95rem;
    margin-bottom: 56px;
  }

  .hero-cta-label {
    font-size: var(--text-sm);
  }

  .service-card {
    scroll-margin-top: 43px;
  }

  /* ── Hero lottie card: stack vertically on mobile ── */
  .hero-lottie-card {
    grid-template-columns: 1fr;
  }

  .hero-lottie-item {
    padding: 16px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(29, 30, 36, 0.06);
    justify-content: center;
    align-items: center;
  }

  .hero-lottie-item:last-child {
    border-bottom: none;
  }

  .hero-lottie-header {
    align-self: flex-start;
    margin-bottom: 0;
  }

  .hero-lottie-icon {
    width: 48px;
    height: 48px;
  }

  .hero-lottie-anim {
    display: none;
  }

  .hero-cta {
    margin-top: 20px;
  }

  /* ── Buttons ── */
  .btn-primary {
    font-size: var(--text-xs);
    padding: 8px 16px;
  }

  /* ── loesungen ── */
  #loesungen h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
  }

  .loesungen-intro {
    font-size: 0.95rem;
  }


  /* ── Service Cards ── */
  .service-card-wide .card-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .service-card-wide .card-flex .card-content {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 24px var(--space-md) var(--space-md);
    gap: 14px;
  }

  .lottie-container {
    width: 100%;
    height: 280px;
    padding: 24px 48px 16px;
  }

  .card-header h3 {
    font-size: 1.1rem;
  }

  .hero-lottie-title {
    font-size: 1.1rem;
  }

  .loesungen-intro {
    font-weight: 400;
  }

  .deep-dive-content h3 {
    font-size: 1rem;
  }

  .benefit-list li {
    font-size: var(--text-sm);
  }

  .expand-examples-title {
    font-size: 1rem;
    font-weight: 600;
  }

  .service-card .expand-examples-footnote {
    font-size: 11px;
  }

  .expand-examples a {
    font-size: var(--text-sm);
  }

  .expand-cta-top .expand-cta-label {
    font-size: var(--text-sm);
  }

  .card-expand-inner {
    padding: 24px var(--space-md);
    gap: 20px;
  }

  .card-expand.open {
    max-height: 2000px;
  }

  /* Hide lottie when expand is open on mobile */
  .service-card:has(.card-expand.open) .lottie-container {
    display: none;
  }


  /* einblick: stack cards */
  .einblick-grid {
    grid-template-columns: 1fr;
  }

  /* Kontakt titles smaller */
  #kontakt h2 {
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
  }


  /* ── Über mich ── */
  .ueber-mich-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-sm);
  }

  .ueber-mich-photo {
    position: static;
    margin-top: 0;
  }

  .photo-placeholder {
    aspect-ratio: 4 / 3;
    max-height: 260px;
  }

  .subpage-section h2 {
    margin-bottom: 0rem;
  }

  .ueber-mich-name {
    font-size: var(--text-xl);
  }

}


/* ============================================================
   Responsive — Small mobile (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  nav ul {
    gap: 0.9rem;
  }

  #hero h1 {
    font-size: 2.0rem;
  }

  #hero p {
    font-size: var(--text-sm);
  }

  .lottie-container {
    height: 240px;
    padding: 16px 16px 16px;
  }

  .service-card-wide .card-flex .card-content {
    padding: 20px var(--space-sm) var(--space-sm);
  }

  .card-header h3 {
    font-size: 1.15rem;
  }

  .service-card p {
    font-size: var(--text-sm);
  }
}