/* =========================================================
   EMTAL GmbH — main.css
   Minimalistisch, flache Flächen, viel Weissraum.
   ========================================================= */

/* ---------- 1. Design-Tokens ---------- */

:root {
  /* Farben */
  --c-ink: #0A0A0A;
  --c-ink-2: #1C1C1E;
  --c-ink-muted: #6B6B6B;
  --c-ink-soft: #8A8A8A;
  --c-paper: #FFFFFF;
  --c-paper-2: #FAFAFA;
  --c-paper-3: #F4F4F4;
  --c-line: #E6E6E6;
  --c-line-soft: #EFEFEF;
  --c-blue: #1E3A8A;
  --c-blue-hover: #152E6E;

  /* Typografie */
  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-display: clamp(2.75rem, 6vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 4.5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.5vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.3vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-meta: 0.75rem;

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --s-11: 10rem;

  /* Container */
  --container: 1440px;
  --container-narrow: 920px;
  --container-tight: 720px;

  /* Transitions */
  --t-fast: 180ms cubic-bezier(0.2, 0, 0.2, 1);
  --t-base: 320ms cubic-bezier(0.2, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.2, 0, 0.2, 1);

  /* Header Höhe */
  --header-h: 80px;
}

/* ---------- 2. Reset / Base ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--c-ink);
  margin: 0 0 var(--s-5);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.2; }
h4 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0 0 var(--s-4);
  max-width: 62ch;
}

p.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--c-ink);
  max-width: 56ch;
}

a {
  color: var(--c-ink);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--c-ink-muted);
}

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 3px;
}

ul, ol {
  padding-left: var(--s-5);
  margin: 0 0 var(--s-4);
}

li {
  margin-bottom: var(--s-2);
}

hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: var(--s-8) 0;
}

::selection {
  background: var(--c-ink);
  color: var(--c-paper);
}

small, .small {
  font-size: var(--fs-small);
  color: var(--c-ink-muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--s-4);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  background: var(--c-ink);
  color: var(--c-paper);
  padding: var(--s-3) var(--s-5);
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s-4);
  color: var(--c-paper);
}

/* ---------- 3. Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

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

.section {
  padding: clamp(4rem, 10vw, 9rem) 0;
}

.section-tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-dark {
  background: var(--c-ink);
  color: var(--c-paper);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--c-paper); }

.section-dark p { color: rgba(255, 255, 255, 0.75); }

.section-soft {
  background: var(--c-paper-2);
}

/* ---------- 4. Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--s-6);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 40px;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.main-nav { display: none; }

.main-nav ul {
  display: flex;
  gap: clamp(1.25rem, 2vw, 2.25rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav li { margin: 0; }

.main-nav a {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-ink);
  padding: var(--s-2) 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Dropdown */

.main-nav .has-dropdown {
  position: relative;
}

.main-nav .has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.nav-caret {
  transition: transform var(--t-base);
  flex-shrink: 0;
}

.main-nav .has-dropdown:hover .nav-caret,
.main-nav .has-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.main-nav .dropdown {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  padding: var(--s-3) 0;
  margin: 0;
  gap: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  box-shadow: 0 8px 24px -6px rgba(10, 10, 10, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 20;
}

.main-nav .dropdown li {
  display: block;
  width: 100%;
}

/* Invisible bridge zwischen Nav-Link und Dropdown, damit Hover nicht abreißt */
.main-nav .dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.main-nav .has-dropdown:hover > .dropdown,
.main-nav .has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown li { margin: 0; }

.main-nav .dropdown a {
  display: block;
  padding: var(--s-2) var(--s-5);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-ink);
  border-bottom: 0;
  white-space: nowrap;
  text-decoration: none;
}

.main-nav .dropdown a::after { display: none; }

.main-nav .dropdown a:hover,
.main-nav .dropdown a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  color: var(--c-ink);
  outline: none;
}

.main-nav .dropdown .dropdown-divider {
  border-top: 1px solid var(--c-line);
  margin-top: var(--s-2);
  padding-top: var(--s-2);
}

/* Mobile Submenu (Details/Summary) */

.mobile-submenu {
  border: 0;
}

.mobile-submenu summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-5) 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  color: var(--c-ink);
}

.mobile-submenu summary::-webkit-details-marker { display: none; }

.mobile-submenu summary::after {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%230A0A0A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>") center / contain no-repeat;
  transition: transform var(--t-base);
}

.mobile-submenu[open] summary::after { transform: rotate(180deg); }

.mobile-submenu ul {
  padding: 0 0 var(--s-4) 0;
  margin: 0;
  list-style: none;
  border-left: 2px solid var(--c-line);
  padding-left: var(--s-5);
}

.mobile-submenu ul li { border: 0; }

.mobile-submenu ul a {
  padding: var(--s-3) 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--c-ink-muted);
}

.mobile-submenu ul a:hover {
  color: var(--c-ink);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.header-phone {
  display: none;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-ink);
}

.header-phone svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-phone { display: inline-flex; }
}

/* Mobile Toggle */

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="false"] .icon-close { display: none; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--c-paper);
  z-index: 49;
  overflow-y: auto;
  padding: var(--s-6) clamp(1rem, 4vw, 3rem) var(--s-8);
}

.mobile-menu[data-open="true"] { display: block; }

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li + li { border-top: 1px solid var(--c-line-soft); }

.mobile-menu a {
  display: block;
  padding: var(--s-5) 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mobile-contact {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
  color: var(--c-ink-muted);
}

.mobile-contact a {
  display: block;
  padding: var(--s-2) 0;
  font-size: var(--fs-body);
  font-family: var(--font-body);
  color: var(--c-ink);
  font-weight: 500;
  letter-spacing: 0;
}

@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* ---------- 5. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0 var(--s-6);
  height: 52px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base);
}

.btn-primary {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
}

.btn-primary:hover {
  background: var(--c-ink-2);
  color: var(--c-paper);
}

.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}

.btn-outline:hover {
  background: var(--c-ink);
  color: var(--c-paper);
}

.btn-outline:hover svg { transform: translateX(4px); }

.btn-outline-light {
  background: transparent;
  color: var(--c-paper);
  border-color: var(--c-paper);
}

.btn-outline-light:hover {
  background: var(--c-paper);
  color: var(--c-ink);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--c-ink);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-ink);
  transition: gap var(--t-base);
}

.btn-link:hover {
  color: var(--c-ink);
  gap: var(--s-4);
}

.btn-link-light {
  color: var(--c-paper);
  border-bottom-color: var(--c-paper);
}

.btn-link-light:hover { color: var(--c-paper); }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---------- 6. Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(520px, 85vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: var(--s-10) 0 var(--s-9);
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-paper);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.8) 100%);
}

.hero-content { max-width: 820px; }

.hero h1 {
  font-size: var(--fs-display);
  color: var(--c-paper);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: var(--s-6);
}

.hero p {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
  margin-bottom: var(--s-7);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
}

/* Kleiner Hero für Unterseiten */

.page-hero {
  padding: var(--s-10) 0 var(--s-7);
}

.page-hero h1 {
  font-size: var(--fs-h1);
  max-width: 20ch;
}

.page-hero p.lead {
  margin-top: var(--s-5);
  color: var(--c-ink-muted);
}

@media (min-width: 960px) {
  .page-hero {
    padding: var(--s-11) 0 var(--s-8);
  }
}

/* ---------- 7. Service Grid ---------- */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-line-soft);
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
}

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--c-paper);
  text-decoration: none;
  color: var(--c-ink);
  transition: background var(--t-base);
}

.service-card:hover {
  background: var(--c-paper-2);
  color: var(--c-ink);
}

.service-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-paper-3);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  transition: transform 800ms cubic-bezier(0.2, 0, 0.2, 1);
}

.service-card:hover .service-card-media img {
  transform: scale(1.04);
}

.service-card-body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}

.service-card-number {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-ink-muted);
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.service-card-desc {
  font-size: var(--fs-small);
  color: var(--c-ink-muted);
  margin: 0;
  max-width: none;
  line-height: 1.55;
}

.service-card-arrow {
  margin-top: var(--s-4);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.service-card-arrow::after {
  content: "→";
  transition: transform var(--t-base);
}

.service-card:hover .service-card-arrow::after { transform: translateX(4px); }

/* ---------- 8. Statement / Intro ---------- */

.statement {
  padding: clamp(4rem, 10vw, 9rem) 0;
}

.statement-inner {
  max-width: 24ch;
}

.statement-lead {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--c-ink);
  max-width: 18ch;
}

.statement-body {
  margin-top: var(--s-7);
  font-size: var(--fs-lead);
  color: var(--c-ink-muted);
  max-width: 48ch;
  line-height: 1.55;
}

@media (min-width: 960px) {
  .statement-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 6rem);
    max-width: none;
    align-items: start;
  }

  .statement-lead { max-width: 16ch; }
  .statement-body { margin-top: var(--s-1); }
}

/* ---------- 9. Ablauf ---------- */

.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  margin-top: var(--s-8);
}

@media (min-width: 640px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
}

.process-step {
  position: relative;
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-ink);
}

.process-step-number {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--c-ink-muted);
  margin-bottom: var(--s-3);
}

.process-step h3 {
  font-size: 1.125rem;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: var(--fs-small);
  color: var(--c-ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- 10. Projekt-Grid ---------- */

.projekt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}

@media (min-width: 720px) {
  .projekt-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-7);
  }
}

@media (min-width: 1100px) {
  .projekt-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.projekt-card {
  display: block;
  text-decoration: none;
  color: var(--c-ink);
}

.projekt-card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-paper-3);
  margin-bottom: var(--s-4);
}

.projekt-card-media img {
  width: 100%;
  height: 100%;
  transition: transform 900ms cubic-bezier(0.2, 0, 0.2, 1);
}

.projekt-card:hover .projekt-card-media img {
  transform: scale(1.03);
}

.projekt-card-meta {
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--s-2);
}

.projekt-card h3 {
  font-size: 1.375rem;
  margin: 0;
}

/* Alternierende Höhe für Interesse */

@media (min-width: 720px) {
  .projekt-grid .projekt-card:nth-child(even) {
    margin-top: var(--s-9);
  }
}

/* ---------- 11. CTA ---------- */

.cta {
  padding: clamp(4rem, 10vw, 9rem) 0;
  background: var(--c-ink);
  color: var(--c-paper);
  text-align: left;
}

.cta h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--c-paper);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: var(--s-7);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
}

.cta-phone {
  display: inline-flex;
  flex-direction: column;
  color: var(--c-paper);
  font-family: var(--font-display);
  font-weight: 500;
}

.cta-phone-label {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--s-1);
}

.cta-phone-number {
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.01em;
}

/* ---------- 12. Kontakt ---------- */

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
}

@media (min-width: 960px) {
  .kontakt-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: var(--s-9);
  }
}

.kontakt-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  font-size: var(--fs-body);
}

.kontakt-list dt {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--s-2);
}

.kontakt-list dd {
  margin: 0;
  color: var(--c-ink);
  line-height: 1.55;
}

.kontakt-list dd a {
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
  transition: border-color var(--t-fast);
}

.kontakt-list dd a:hover { border-bottom-color: var(--c-ink); }

.kontakt-block {
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--c-line);
}

.kontakt-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* Formular */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

/* Schwarzer Container für das Kontaktformular */

.kontakt-form-box {
  background: var(--c-ink);
  color: var(--c-paper);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.kontakt-form-box h4 {
  color: var(--c-paper);
}

.kontakt-form-box .field label {
  color: rgba(255, 255, 255, 0.7);
}

.kontakt-form-box .field input,
.kontakt-form-box .field textarea,
.kontakt-form-box .field select {
  color: var(--c-paper);
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.kontakt-form-box .field input::placeholder,
.kontakt-form-box .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.kontakt-form-box .field input:focus,
.kontakt-form-box .field textarea:focus,
.kontakt-form-box .field select:focus {
  border-bottom-color: var(--c-paper);
}

.kontakt-form-box .field select option {
  background: var(--c-ink);
  color: var(--c-paper);
}

.kontakt-form-box .checkbox {
  color: rgba(255, 255, 255, 0.7);
}

.kontakt-form-box .checkbox a {
  color: var(--c-paper);
  border-bottom-color: rgba(255, 255, 255, 0.4) !important;
}

.kontakt-form-box .btn-primary {
  background: var(--c-paper);
  color: var(--c-ink);
  border-color: var(--c-paper);
}

.kontakt-form-box .btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  color: var(--c-ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}

@media (min-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.field label {
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: var(--s-3) 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  transition: border-color var(--t-fast);
  border-radius: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-bottom-color: var(--c-ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--c-ink-muted);
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--c-ink);
}

/* ---------- 13. Stat Row ---------- */

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-8);
  }
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s-2);
  color: var(--c-ink);
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--c-ink-muted);
  max-width: 30ch;
}

/* ---------- 14. Galerie ---------- */

.galerie {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}

@media (min-width: 720px) {
  .galerie {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .galerie {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
  }
}

.galerie figure {
  margin: 0;
  overflow: hidden;
  background: var(--c-paper-3);
}

/* Einzelnes Hero-Foto auf Leistungs-Detailseiten */
.service-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-paper-3);
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  transition: transform 800ms cubic-bezier(0.2, 0, 0.2, 1);
}

.galerie figure:hover img { transform: scale(1.04); }

/* ---------- 15. Inhalts-Seiten (Impressum, Datenschutz, AGB) ---------- */

.content-page {
  padding: var(--s-9) 0;
}

.content-page h2 {
  font-size: 1.5rem;
  margin-top: var(--s-8);
  margin-bottom: var(--s-4);
}

.content-page h2:first-child { margin-top: 0; }

.content-page address {
  font-style: normal;
  padding: var(--s-5);
  background: var(--c-paper-2);
  border-left: 3px solid var(--c-ink);
  margin: var(--s-5) 0;
}

/* ---------- 16. Footer ---------- */

.site-footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--s-10) 0 var(--s-6);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-9);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

.footer-brand {
  max-width: 42ch;
}

.footer-brand .logo {
  height: 32px;
  margin-bottom: var(--s-5);
  filter: invert(1) brightness(2);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin: 0;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  color: var(--c-paper);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 var(--s-5);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: var(--s-3); }

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: var(--c-paper);
}

.footer-bottom {
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-meta);
  color: rgba(255, 255, 255, 0.48);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom a:hover { color: var(--c-paper); }

/* ---------- 17. Consent Banner ---------- */

.consent-banner {
  position: fixed;
  bottom: var(--s-4);
  left: var(--s-4);
  right: var(--s-4);
  max-width: 560px;
  margin: 0 auto;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.25);
  padding: var(--s-5);
  z-index: 200;
  display: none;
}

.consent-banner[data-visible="true"] { display: block; }

.consent-banner p {
  font-size: var(--fs-small);
  color: var(--c-ink-muted);
  line-height: 1.55;
  margin: 0 0 var(--s-4);
}

.consent-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.consent-actions .btn {
  height: 44px;
  padding: 0 var(--s-4);
  font-size: var(--fs-small);
  flex: 1;
  min-width: 130px;
}

/* ---------- 18. Section Heading ---------- */

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
  align-items: end;
}

@media (min-width: 960px) {
  .section-heading {
    grid-template-columns: 1fr auto;
    gap: var(--s-8);
  }
}

.section-heading h2 {
  max-width: 18ch;
  margin: 0;
}

.section-heading p {
  color: var(--c-ink-muted);
  max-width: 44ch;
  margin: 0;
}

/* ---------- 19. Breadcrumbs ---------- */

.breadcrumbs {
  padding: var(--s-5) 0 0;
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li { margin: 0; }

.breadcrumbs li + li::before {
  content: "/";
  margin-right: var(--s-2);
  color: var(--c-line);
}

.breadcrumbs a {
  color: var(--c-ink-muted);
}

.breadcrumbs a:hover { color: var(--c-ink); }

.breadcrumbs [aria-current="page"] { color: var(--c-ink); }

/* ---------- 20. Utilities ---------- */

.text-center { text-align: center; }
.max-narrow { max-width: 58ch; }

.divider {
  height: 1px;
  background: var(--c-line);
  border: 0;
  margin: 0;
}

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

/* Honeypot. Für Menschen unerreichbar, Bots füllen es aber meist aus.
   Serverseitig: wenn ein Honeypot-Feld nicht leer ist, Anfrage verwerfen. */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Statusmeldung im Kontaktformular (Fehlerfall). */
.form-status {
  display: none;
  padding: var(--s-4) var(--s-5);
  background: #FDEDED;
  color: #7A1F1F;
  border-left: 3px solid #7A1F1F;
  font-size: var(--fs-small);
  line-height: 1.55;
  margin-bottom: var(--s-5);
}

.form-status[data-visible="true"] { display: block; }

.form-status strong {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s-1);
  color: #7A1F1F;
}

/* ---------- 21. Print ---------- */

@media print {
  .site-header, .site-footer, .cta, .consent-banner,
  .mobile-menu, .menu-toggle, .btn { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
}
