/* ==========================================================================
   dpend.se – modern design
   Struktur:
   1. Tokens          5. Hero             9. Projekt
   2. Bas / reset     6. Sektioner       10. Kontakt / formulär
   3. Layout          7. Kort & grids    11. Footer
   4. Header / nav    8. Knappar/chips   12. Animationer & utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #0c1417;
  --ink-2: #1d2a2e;
  --muted: #5b6b70;
  --line: #e3e9ea;
  --bg: #ffffff;
  --bg-soft: #f4f8f8;
  --teal: #27bfc5;          /* prickens färg i logotypen */
  --teal-600: #1a9ea4;
  --teal-800: #1a7f83;
  --teal-50: #e8f8f9;
  --white: #ffffff;

  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(12, 20, 23, .06), 0 2px 8px rgba(12, 20, 23, .04);
  --shadow: 0 10px 30px -10px rgba(12, 20, 23, .18);
  --shadow-lg: 0 30px 60px -20px rgba(12, 20, 23, .28);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Bas / reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.25rem, 6.2vw, 4.75rem); font-weight: 600; overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #c9d4d6; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.section--dark .lead { color: #9fb0b3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-800);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.section--dark .eyebrow { color: var(--teal); }

.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

.accent { color: var(--teal-600); }
.brand-inline { font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; }

/* 4. Header / nav ---------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled,
.site-header--solid {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
/* Över mörk hero: ljus text tills man scrollar */
.site-header--overlay:not(.is-scrolled):not(.nav-open) { color: var(--white); }
.site-header--overlay:not(.is-scrolled):not(.nav-open) .logo { color: var(--white); }

.logo {
  display: inline-flex; align-items: flex-start; text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: 1.75rem; line-height: 1;
  letter-spacing: .14em; color: var(--ink); position: relative; padding-right: 12px;
}
.logo__dot {
  position: absolute; right: 0; top: -4px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
}
.logo--lg { font-size: 2.4rem; }
.logo--lg .logo__dot { width: 12px; height: 12px; top: -6px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 10px 14px; text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav__link:hover { background: rgba(39, 191, 197, .12); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--teal); transform: translateX(-50%);
}
.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; color: inherit;
  border-radius: 50%; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 22px; height: 2px; margin-left: -11px; background: currentColor;
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 32px;
    background: var(--white); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 8px; }
  .nav__link { font-size: 1.75rem; padding: 10px 24px; }
  .nav__cta { margin: 0; }
  /* backdrop-filter skapar ett nytt containing block – stäng av när menyn är öppen */
  .site-header.nav-open { background: var(--white); color: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header .logo { z-index: 2; }
  body.no-scroll { overflow: hidden; }
}

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); padding: calc(var(--header-h) + 48px) 0 clamp(56px, 9vw, 112px);
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.06); animation: hero-zoom 14s var(--ease) forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 20, 23, .55) 0%, rgba(12, 20, 23, .15) 35%, rgba(12, 20, 23, .85) 100%),
    linear-gradient(90deg, rgba(12, 20, 23, .7) 0%, rgba(12, 20, 23, 0) 70%);
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero__text { max-width: 560px; font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .85); }
.hero .eyebrow { color: var(--teal); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px; display: none;
  font-family: var(--font-head); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  writing-mode: vertical-rl; color: rgba(255, 255, 255, .7); text-decoration: none;
}
.hero__scroll::after { content: ""; display: block; width: 1px; height: 60px; margin: 12px auto 0; background: linear-gradient(var(--teal), transparent); animation: scroll-line 2s ease-in-out infinite; }
@media (min-width: 900px) { .hero__scroll { display: block; } }

.typed { color: var(--teal); }
.typed::after { content: ""; display: inline-block; width: 3px; height: .85em; margin-left: 4px; background: var(--teal); vertical-align: -.05em; animation: blink 1s steps(1) infinite; }

/* Sidhuvud för undersidor */
.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 112px)) 0 clamp(56px, 8vw, 96px);
  background: var(--bg-soft); overflow: hidden; isolation: isolate;
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -120px;
  width: clamp(280px, 40vw, 560px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(39, 191, 197, .35), rgba(39, 191, 197, 0) 65%);
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 640px; }

/* 6. Sektioner ------------------------------------------------------------- */
.intro-statement {
  font-family: var(--font-head); font-weight: 400; color: var(--ink);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; letter-spacing: -.015em; max-width: 26ch; margin: 0;
}
.intro-statement em { font-style: normal; color: var(--teal-600); }

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 4 / 3; }
.media-badge {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink);
}
.media-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(39, 191, 197, .25); }

.quote {
  position: relative; margin: 0; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg);
  background: var(--ink); color: var(--white);
}
.quote p { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.35; font-weight: 400; color: var(--white); }
.quote::before { content: "\201C"; position: absolute; top: -10px; left: 28px; font-family: var(--font-head); font-size: 8rem; line-height: 1; color: var(--teal); }
.quote footer { margin-top: 20px; color: var(--teal); font-weight: 600; font-family: var(--font-head); }

.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 88px); background: var(--ink); color: #c9d4d6; isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; right: -10%; bottom: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 191, 197, .45), rgba(39, 191, 197, 0) 65%);
}
.cta-band h2 { color: var(--white); max-width: 18ch; }
.cta-band p { max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 7. Kort & grids ---------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.card {
  position: relative; padding: 32px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px;
  border-radius: 14px; background: var(--teal-50); color: var(--teal-800);
}
.card__icon svg { width: 26px; height: 26px; }
.card__num { position: absolute; top: 28px; right: 32px; font-family: var(--font-head); font-size: .9rem; color: #b5c2c4; }

.section--dark .card { background: var(--ink-2); border-color: rgba(255, 255, 255, .06); }
.section--dark .card p { color: #9fb0b3; }
.section--dark .card__icon { background: rgba(39, 191, 197, .12); color: var(--teal); }

.link-arrow {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-head); font-weight: 600; text-decoration: none; color: var(--teal-800);
}
/* Pilen följer sista ordet även när länktexten bryts på flera rader */
.link-arrow::after { content: "\2192"; display: inline-block; margin-left: 8px; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--teal); }

.partner-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.partner {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px;
  border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 500; color: var(--ink);
}
.partner img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: var(--bg-soft); padding: 4px; }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure:nth-child(1) { grid-column: span 4; aspect-ratio: 16 / 10; }
.gallery figure:nth-child(2) { grid-column: span 2; }
@media (max-width: 700px) { .gallery figure:nth-child(n) { grid-column: span 6; aspect-ratio: 4 / 3; } }

.section-split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-split-head .section-head { margin-bottom: 0; }

.project-card {
  display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 24px; }
.project-card__body h3 { margin: 0; }
.project-card__body p { margin: 0 0 8px; color: var(--muted); font-size: .975rem; flex: 1; }

.feature { border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .06); display: flex; flex-direction: column; }
.feature__media { aspect-ratio: 16 / 9; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.04); }
.feature__body { padding: clamp(24px, 4vw, 40px); }
/* Bildyta med partnerlogga på egen bakgrundsfärg (t.ex. Nattvandrarnas gula #f6e073) */
/* Loggan är tätt beskuren – den absolut positionerade ytan med marginal centrerar den oavsett kortets storlek */
.feature__media--logo { position: relative; background: var(--logo-bg, #f6e073); }
.feature__media--logo img { position: absolute; inset: 22% 15%; width: 70%; height: 56%; object-fit: contain; }
.feature:hover .feature__media--logo img { transform: scale(1.06); }
.feature__body p { color: #9fb0b3; }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f83' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { counter-increment: step; position: relative; padding: 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 20px;
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 600; color: var(--teal); line-height: 1;
}
.step h3 { color: var(--white); }
.step p { margin: 0; color: #9fb0b3; }
.step a { color: var(--teal); }

/* 8. Knappar & chips ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: var(--ink); }
.btn--primary:hover { background: #3fd0d6; box-shadow: 0 10px 24px -8px rgba(39, 191, 197, .7); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--sm { min-height: 42px; padding: 10px 20px; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; background: var(--teal-50); color: var(--teal-800);
}
.chip--outline { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.chips--center { justify-content: center; }
.section--soft .chip--outline { background: var(--white); }
.section--dark .chip { background: rgba(39, 191, 197, .12); color: var(--teal); }

/* 9. Projekt --------------------------------------------------------------- */
.project-nav {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 50; display: flex; gap: 6px; flex-wrap: nowrap;
  overflow-x: auto; width: max-content; max-width: 100%; margin: 0 auto clamp(40px, 6vw, 72px); padding: 6px;
  border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); scrollbar-width: none;
}
.project-nav::-webkit-scrollbar { display: none; }
.project-nav a {
  flex: none; padding: 10px 18px; border-radius: 999px; text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--muted); transition: background .2s, color .2s;
}
.project-nav a:hover { color: var(--ink); }
.project-nav a.is-active { background: var(--ink); color: var(--white); }

/* Ankarlänkar landar under den klistrade projektmenyn (adderas till html:s scroll-padding-top) */
.project { scroll-margin-top: 64px; }
.project:first-of-type { scroll-margin-top: 96px; }
.project { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .project { grid-template-columns: 5fr 6fr; }
  .project:nth-of-type(even) .project__media { order: 2; }
}
.project__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project__media img { transform: scale(1.03); }
.project__index { font-family: var(--font-head); font-size: .9rem; color: var(--teal-800); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.project h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-top: 10px; }
.project__sub { font-family: var(--font-head); font-size: 1.2rem; color: var(--muted); margin-bottom: 20px; }
.project__body p { color: var(--muted); }
.project__tech { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); }
.project__tech span:first-child { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-right: 4px; }

.details-toggle { margin-top: 4px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 1rem; }
.details-toggle[aria-expanded="true"]::after { transform: rotate(-90deg); }
.card__logo { height: 64px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: 20px; }
.project__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.project__more > div { overflow: hidden; }
.project__more.is-open { grid-template-rows: 1fr; }

/* 10. Kontakt / formulär --------------------------------------------------- */
.topic-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.topic-list li {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line); font-weight: 500; color: var(--ink);
}
.topic-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.contact-cards { display: grid; gap: 12px; margin-top: 32px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s var(--ease);
}
.contact-card:hover { border-color: var(--teal); transform: translateX(4px); }
.contact-card__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-50); color: var(--teal-800); }
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; }
.contact-card strong { font-family: var(--font-head); font-weight: 600; color: var(--ink); word-break: break-word; }

.form {
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--white);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.form h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: .3em; }
.form__intro { color: var(--muted); margin-bottom: 28px; }
.field__optional { font-weight: 400; color: var(--muted); }
.split--top { align-items: start; }
.page-hero--contact h1 { max-width: 12ch; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg-soft); font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(39, 191, 197, .18);
}
.field.has-error input, .field.has-error textarea { border-color: #d64545; }
.field__error { display: none; font-size: .85rem; color: #c03636; }
.field.has-error .field__error { display: block; }
.form__note { font-size: .875rem; color: var(--muted); margin: 16px 0 0; }
.form__success {
  display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--teal-50); color: var(--teal-800); font-weight: 500;
}
.form__success.is-visible { display: block; }

.people { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.person {
  display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
}
.person img { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--teal); }
.person h3 { margin-bottom: 2px; font-size: 1.25rem; }
.person__role { color: var(--teal-800); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.person a { display: block; text-decoration: none; color: var(--muted); font-size: .95rem; word-break: break-word; }
.person a:hover { color: var(--ink); }

/* 11. Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #9fb0b3; padding: clamp(64px, 8vw, 96px) 0 32px; }
.site-footer .logo { color: var(--white); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid h4 { color: var(--white); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: var(--teal); }
.footer-tagline { margin-top: 18px; max-width: 280px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15); color: var(--white); transition: background .2s, border-color .2s, color .2s;
}
.social a:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); }

/* 12. Animationer & utilities ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.d1 { --delay: .08s; }
.d2 { --delay: .16s; }
.d3 { --delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes hero-zoom { to { transform: scale(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scroll-line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.text-center { text-align: center; }
