/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FONTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque-v9-latin/bricolage-grotesque-v9-latin-regular.woff2') format('woff2'),
       url('fonts/bricolage-grotesque-v9-latin/bricolage-grotesque-v9-latin-regular.woff') format('woff'),
       url('fonts/bricolage-grotesque-v9-latin/bricolage-grotesque-v9-latin-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Syne';
  src: url('fonts/syne-v24-latin/syne-v24-latin-regular.woff2') format('woff2'),
       url('fonts/syne-v24-latin/syne-v24-latin-regular.woff') format('woff'),
       url('fonts/syne-v24-latin/syne-v24-latin-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET & VARIABLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

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

:root {
  /* Colours */
  --cream:        #F6F5EB;
  --dark:         #050E1C;
  --lime:         #78D64B;
  --green:        #78D64B;
  --text:         #050E1C;   /* ~15:1 contrast on --cream */
  --muted:        #050E1C;   /*  6.5:1 contrast on --cream (WCAG AA ✓) */
  --white:        #FFFFFF;
  --focus-light:  #78D64B;   /* focus ring on light bg  — ~7:1 on --cream */
  --focus-dark:   #78D64B;   /* focus ring on dark bg   — ~11:1 on --dark */

  /* Radii */
  --r:   14px;
  --rl:  22px;

  /* Layout */
  --max-w: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

address { font-style: normal; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TYPOGRAPHY SYSTEM
   Briefing: /_briefing/design/typography
   Clamp formula: clamp(mobile, slope·1vw + intercept, desktop)
   Breakpoints: mobile = 375px, desktop = 1200px
   Tablet (768px) values hit automatically via the fluid range.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ─ Überschriften ─────────────── */

/* H1  54 px → 42 px → 32 px  |  700  |  1.15 */
h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 2.67vw + 22px, 54px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* H2  42 px → 34 px → 26 px  |  700  |  1.2 */
h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(26px, 1.94vw + 18.75px, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

/* H3  32 px → 26 px → 22 px  |  600  |  1.25 */
h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 1.21vw + 17.5px, 32px);
  font-weight: 700;
  line-height: 1.25;
}

/* H4  24 px → 20 px → 18 px  |  600  |  1.3 */
h4 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(18px, 0.73vw + 15.3px, 24px);
  font-weight: 600;
  line-height: 1.3;
}

/* H5  20 px → 18 px → 16 px  |  500  |  1.35 */
h5 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(16px, 0.48vw + 14.2px, 20px);
  font-weight: 500;
  line-height: 1.35;
}

/* H6  18 px → 16 px → 14 px  |  500  |  1.4 */
h6 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(14px, 0.48vw + 12.2px, 18px);
  font-weight: 500;
  line-height: 1.4;
}

/* ─ Fließtext ─────────────────── */

/* lead  20 px → 18 px → 18 px  |  400  |  1.6  (tablet+mobil ident) */
.lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
}

/* p (Base)  16 px  |  400  |  1.7 */
p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

/* small  14 px  |  400  |  1.6 */
.small,
small {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* caption  12 px  |  400  |  1.5 */
.caption {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACCESSIBILITY UTILITIES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Visually hidden but available to assistive tech */
.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;
}

/* WCAG 2.4.1 – Skip navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 9999;
  background: var(--dark);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 0 0 8px 8px;
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

/* WCAG 2.4.7 – Focus visible (all interactive elements) */
:focus-visible {
  outline: 2.5px solid var(--focus-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Override for dark-background sections */
nav       :focus-visible,
#kontakt  :focus-visible,
footer    :focus-visible {
  outline-color: var(--focus-dark);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: 0 2px 28px rgba(0,0,0,0.4); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 20px;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; }

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--cream);
  text-align: center;
  line-height: 1.4;
}

.nav-action { display: flex; justify-content: flex-end; }

/* ──── Burger button ──── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  flex-shrink: 0;
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.burger.active .burger-bar:nth-child(1) { transform: translateY(7px)  rotate(45deg);  }
.burger.active .burger-bar:nth-child(2) { opacity: 0; transform: scaleX(0);           }
.burger.active .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nahtloser Übergang zur fullscreen-Menu-Overlay */
nav.menu-open { border-bottom-color: transparent; }

/* ──── Fullscreen mobile menu ──── */
.mobile-menu {
  display: none;        /* enabled via media query */
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px 52px;
  gap: 44px;
}

.mobile-menu :focus-visible { outline-color: var(--focus-dark); }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links a {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 10vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
  text-decoration: none;
  padding: 10px 0;
  transition: opacity 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible { opacity: 0.45; outline: none; }

.mobile-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 18px;
}

.mobile-contact a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-contact a:hover { color: rgba(255,255,255,0.75); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
   WCAG 2.5.8 – Target size ≥ 44px (recommended) / 24px (minimum)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1;
}

.btn:hover { opacity: 0.87; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* WCAG 1.4.11 – Non-text contrast: inset shadow provides 3:1 boundary on --cream */
.btn-lime {
  background: var(--lime);
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.14);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PILLS  (decorative / informational)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style-type: none;
  margin-bottom: 32px;
}

.pill {
  padding: 6px 16px;
  border: 1px solid rgba(0,0,0,0.22);
  border-radius: 10px;
  font-size: 10.5px;
  letter-spacing: 0.11em;
  color: var(--muted);    /* 6.5:1 ✓ */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION: HERO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#hero {
  padding: 100px 0 90px;
  text-align: center;
  background: var(--dark);
  color: var(--white);
}

#hero :focus-visible { outline-color: var(--focus-dark); }

/* H1 global style applies; add layout-specific overrides only */
#hero h1 {
  max-width: 800px;
  margin: 0 auto 16px;
}

#hero .pill {
  border-color: #8BC25A;
  color: #8BC25A;
}

#hero .lead {
  max-width: 800px;
  margin: 0 auto 44px;
  color: rgba(255,255,255);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION: ABOUT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#about { padding: 100px 0; scroll-margin-top: 213px; }

.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #C8C0B4 0%, #B8B0A4 100%);
  border-radius: var(--rl);
  overflow: hidden;
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.08));
}

/* H2 global style applies; add layout-specific overrides only */
.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 14px;
}

.feature-boxes {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fbox {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: var(--r);
  transition: border-color 0.2s;
}

.fbox:hover { border-color: rgba(0,0,0,0.20); }

/* WCAG 1.4.11 – Icon circle border: colour + shape identify the element */
.fbox-icon,
.scard-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgb(139 194 90);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}

/* Component override: H5-level visual size for compact card labels */
.fbox-text h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 2px;
}

.fbox-text span {
  font-size: 16px;
  color: var(--muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION: SERVICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#leistungen { padding: 100px 0; scroll-margin-top: 213px; }

.section-head {
  text-align: center;
  margin-bottom: 16px;
}

/* H2 global style applies; add layout-specific overrides only */
.section-head h2 { margin-bottom: 14px; }

.section-head p {
  color: var(--muted);
}

/* WCAG 1.4.11 – Phase tab buttons: border + colour change on active */
.phase-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 36px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.phase-tabs::-webkit-scrollbar { display: none; }

/* Buttons reset + custom styles */
.ptab {
  flex-shrink: 0;
  padding: 12px 48px;
  min-height: 44px;
  font-size: 10.5px;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.14em;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

/* WCAG 3.2.4 – Consistent identification: same active indicator everywhere */
.ptab[aria-pressed="true"] {
  color: var(--text);
  border-bottom-color: var(--text);
}

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

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.scard {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--rl);
  padding: 28px;
  transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s;
}

.scard:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }

/* Dimmed cards remain accessible (just visually de-emphasised) */
.scard.dimmed {
  opacity: 0.35;
  transform: scale(0.99);
}

.scard-icon {
  /*width: 44px;
  height: 44px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);*/
  margin-bottom: 18px;
}

/* Component override: H5-level visual size for service card titles */
.scard h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 16px;
}

.scard ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.scard ul li {
  font-size: 16px;   /* small: 14px / 1.6 */
  line-height: 1.6;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

/* Decorative marker — not read by screen readers as meaningful content */
.scard ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: rgba(0,0,0,0.28);
}

.services-note {
  text-align: center;
  margin-top: 28px;
  font-size: 16px;   /* small */
  line-height: 1.6;
  color: var(--muted);
  font-style: italic;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION: DARK CTA
   WCAG 3.2.6 – Consistent help: CTA offers contact consistently
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#kontakt {
  background: var(--dark);
  color: var(--white);
  padding: 108px 0;
  text-align: center;
  scroll-margin-top: 213px;
}

/* H2 global style applies; add layout-specific overrides only */
#kontakt h2 {
  max-width: 800px;
  margin: 0 auto 24px;
}

#kontakt .lead {
  max-width: 800px;
  margin: 0 auto 48px;
  /* rgba(255,255,255,0.65) → effective ~#A6A6A6 → 5.8:1 on #0C0C10 ✓ */
  color: rgba(255,255,255);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION: REFERRAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

#empfehlung {
  padding: 104px 0;
  text-align: center;
}

/* H2 global style applies; add layout-specific overrides only */
#empfehlung h2 {
  max-width: 800px;
  margin: 0 auto 16px;
}

#empfehlung .lead {
  max-width: 800px;
  margin: 0 auto 44px;
  color: var(--muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
   WCAG 3.2.6 – Contact info at consistent location (footer)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

footer .pill {
  border-color: #8BC25A;
  color: #8BC25A;
}

footer .pills {
  margin-bottom: 0 !important;
}

footer {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (max-width:900px) {
  .footer-brand img {
    width: 125px;
  }
}

.footer-brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--white);
  line-height: 1.5;
}

.footer-values {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-values li {
  list-style: none;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  /* rgba(255,255,255,0.55) → ~5.2:1 on #0C0C10 ✓ */
  color: rgba(255,255,255,0.55);
}

/* WCAG 1.4.3 – footer contact: 0.70 opacity → ~7:1 on #0C0C10 ✓ */
.footer-contact {
  display: flex;
  gap: 32px;
  font-size: 20px;
  color: rgba(255,255,255,0.70);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-contact a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact a:hover { color: var(--white); }

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* WCAG 1.4.3 – legal text: 0.55 opacity → ~5.2:1 ✓ */
.footer-legal {
  display: flex;
  gap: 24px;
  font-size: 12px;    /* caption: 12px / 1.5 */
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-legal a {
  color: rgba(255,255,255,0.60);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.88); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LEGAL PAGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.page-header {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 52px;
  text-align: center;
}

.page-header :focus-visible { outline-color: var(--focus-dark); }

.legal-content { padding: 72px 0 100px; }

.legal-prose { max-width: 720px; }

.legal-prose h2 {
  margin-top: 52px;
  margin-bottom: 10px;
}

.legal-prose h2:first-child { margin-top: 0; }

.legal-prose h3 {
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 6px;
}

.legal-prose p,
.legal-prose address {
  color: var(--muted);
  margin-bottom: 10px;
}

.legal-prose ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-prose ul li {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 800px) {
  .page-header { padding: 48px 0 40px; }
  .legal-content { padding: 52px 0 72px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SCROLL REVEAL ANIMATION
   WCAG 2.2.2 – Animations < 5s, controllable via prefers-reduced-motion
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WCAG 2.2.2 – REDUCED MOTION
   Respect user OS preference — disable all transitions/animations
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@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;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover { transform: none; }

  .scard { transition: none; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE – TABLET  (≤ 900px)
   WCAG 1.3.4 – Orientation: layout works in both orientations
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 900px) {
  .container { padding: 0 28px; }

  /* lead: 20px → 18px at tablet */
  .lead { font-size: 18px; }

  .nav-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    gap: 0;
    padding: 32px 28px;
  }

  .nav-brand img {
    width: 125px;
    height: auto;
  }

  .nav-brand  { flex-direction: row; gap: 10px; }
  .nav-links,
  .nav-action { display: none; }
  .burger     { display: flex; }

  .mobile-menu {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.32s ease, visibility 0.32s ease;
  }

  .mobile-menu.open {
    visibility: visible;
    opacity: 1;
  }

  #hero { padding: 72px 0 60px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo { max-width: 360px; aspect-ratio: 1 / 1; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .ptab { padding: 12px 32px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE – MOBILE  (≤ 800px)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 800px) {
  .container { padding: 0 20px; }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  main { padding-top: 152px; }

  .nav-inner { padding: 32px 20px; }
  .btn { font-size: 16px; }
  .nav-action .btn { padding: 12px 18px; }

  #hero,
  #about,
  #leistungen,
  #kontakt,
  #empfehlung { padding-top: 60px; padding-bottom: 52px; }

  .about-photo { max-width: 100%; aspect-ratio: 1 / 1; }

  .service-grid { grid-template-columns: 1fr; }

  .ptab { padding: 12px 24px; font-size: 10px; }

  .footer-inner   { padding: 0 20px; gap: 20px; }
  .footer-values  { gap: 18px; }
  .footer-contact { flex-direction: column; gap: 10px; align-items: center; }
  .footer-legal   { flex-direction: column; gap: 6px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE – SMALL MOBILE  (≤ 380px)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 380px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}
