/* SAN IT Solutions — Stylesheet
   Umgesetzt aus Figma "SAN-It-Solutions" (Desktop 1440 px). */

/* ---------- Schrift (lokal, DSGVO-freundlich) ---------- */
@font-face { font-family: "Source Sans Pro"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/source-sans-pro-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans Pro"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/source-sans-pro-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans Pro"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/source-sans-pro-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans Pro"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/source-sans-pro-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans Pro"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/source-sans-pro-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans Pro"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/source-sans-pro-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Design-Tokens (aus Figma) ---------- */
:root {
  --c-text: #4e4b48;        /* Fließtext, Überschriften, Footer-Hintergrund */
  --c-nav: #676662;         /* Navigation inaktiv */
  --c-accent: #a89b92;      /* Taupe: Buttons, aktive Links, Services-Band */
  --c-surface: #e2dddb;     /* Karten, Felder, Karte-Platzhalter */
  --c-header: #f2efed;      /* Header-Hintergrund */
  --c-white: #fff;

  --radius: 10px;
  --container: 1280px;      /* 1440 − 2 × 80 px Seitenrand */
  --side: 24px;             /* Mindest-Seitenrand auf kleinen Bildschirmen */

  --fs-display: 50px;       /* H1/H2 groß, uppercase */
  --fs-title: 40px;
  --fs-card: 20px;
  --fs-body: 16px;
  --fs-small: 14px;
  --lh: 1.257;              /* "normal" von Source Sans Pro */
  --gap-heading: 45px;      /* Abstand Überschrift → Text (Vorgabe Grafik, 2026-11-10) */
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: "Source Sans Pro", "Source Sans 3", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: none; }
button, input, textarea { font: inherit; color: inherit; }

.container {
  width: min(var(--container), 100% - 2 * var(--side));
  margin-inline: auto;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Typografie */
.display {
  font-size: var(--fs-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: var(--lh);
}
.display--accent { color: var(--c-accent); }
.title { font-size: var(--fs-title); font-weight: 600; line-height: var(--lh); }
/* Große, linksbündige Überschriften sind im Design optisch 4 px eingerückt */
.optical { margin-left: -4px; }

.accent-line { display: block; width: 118px; height: 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 195px; height: 48px;
  border: 0; border-radius: var(--radius);
  background: var(--c-accent); color: var(--c-white);
  font-size: var(--fs-body); font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: #978a81; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--c-accent); outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--c-header); transition: box-shadow .2s ease; }
/* Kopfzeile bleibt beim Scrollen oben (Wunsch 2026-11-25); Sprungziele nicht unter der Leiste verstecken */
html { scroll-padding-top: 100px; }
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(78, 75, 72, .12); }
.site-header__inner { display: flex; align-items: center; height: 100px; }

.logo { position: relative; display: block; width: 106px; height: 44.827px; flex: none; }
.logo__mark { position: absolute; top: 0; left: 0; width: 106px; height: 31.1789px; }
.logo__claim { position: absolute; top: 40.82px; left: 15.65px; width: 74.6971px; height: 4.01442px; }

.main-nav { display: flex; gap: 29px; margin-left: 111px; }
.main-nav > a, .nav-dropdown > a {
  display: block; color: var(--c-nav); font-weight: 600; text-transform: uppercase; line-height: 20px;
  transition: color .2s ease;
}
.main-nav > a:hover, .nav-dropdown > a:hover, .nav-dropdown.is-open > a { color: var(--c-accent); }
.main-nav > a[aria-current="page"], .nav-dropdown > a[aria-current="page"] { color: var(--c-accent); font-weight: 700; }

/* Services-Dropdown (öffnet bei Hover/Fokus, auf Touch per Tipp) */
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  position: absolute; top: 100%; left: -24px; padding-top: 40px; /* bis Header-Unterkante, ohne Hover-Lücke */
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  visibility: visible; opacity: 1; transform: none; transition-delay: 0s;
}
.nav-dropdown.is-closed .nav-dropdown__menu { visibility: hidden; opacity: 0; }
.nav-dropdown__menu ul {
  min-width: 264px; padding: 16px 0;
  background: var(--c-header); border-top: 1px solid var(--c-surface);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 24px rgba(78, 75, 72, .12);
}
.nav-dropdown__menu a {
  display: block; padding: 8px 24px; color: var(--c-text); white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.nav-dropdown__menu a:hover { color: var(--c-accent); background: rgba(226, 221, 219, .45); }
.nav-dropdown__menu a[aria-current="page"] { color: var(--c-accent); font-weight: 600; }

.header-tools { display: flex; align-items: center; margin-left: auto; }
.lang { display: flex; gap: 6px; line-height: 20px; }
.lang a { color: var(--c-nav); font-weight: 600; }
.lang a[aria-current="true"] { color: var(--c-accent); font-weight: 700; }
/* Menü-Panel — nur Mobile (Hamburger oben links im Header) */
.menu-toggle, .mobile-bar { display: none; }
.menu-panel {
  position: absolute; top: 100%; right: 0; left: 0;
  background: var(--c-header);
  border-top: 1px solid var(--c-surface);
  box-shadow: 0 12px 24px rgba(78, 75, 72, .12);
}
.menu-panel[hidden] { display: none; }
.menu-panel__inner { display: flex; gap: 80px; padding: 32px 0 40px; }
.menu-panel h2 { font-size: var(--fs-small); font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.menu-panel li + li { margin-top: 6px; }
.menu-panel a:hover { color: var(--c-accent); }
.menu-panel__pages { display: none; }
.menu-panel__services ul { columns: 2; column-gap: 48px; }
.menu-close { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-text); color: var(--c-white); font-size: var(--fs-small); }
.site-footer__inner { padding: 63px 0 24px; }
.site-footer__top { display: flex; }
.footer-brand { width: 432px; flex: none; }
.footer-brand .logo { margin-top: 2px; }
.footer-brand p { margin-top: 25px; width: 275px; }
.footer-line { display: block; width: 432px; height: 2px; margin-top: 30px; }
.social { display: flex; align-items: flex-start; gap: 17px; margin-top: 32px; }
.social a { display: block; }
.social__instagram { width: 20px; height: 20px; }
.social__facebook { width: 9.74867px; height: 28px; margin-top: 2px; }

.footer-cols {
  display: grid; grid-template-columns: 157px 195px auto;
  margin-left: 244px;
}
.footer-cols h2 {
  font-size: var(--fs-small); font-weight: 600; text-transform: uppercase;
  margin-bottom: calc(var(--fs-small) * var(--lh)); /* Leerzeile wie im Design */
}
.footer-cols--upper li { text-transform: uppercase; }
.footer-cols a:hover, .footer-legal a:hover { color: var(--c-accent); }
.footer-cols a[aria-current="page"] { color: var(--c-accent); font-weight: 600; }

/* Untere Zeile: Impressum & Co. beginnen bündig mit der Spalte „Services“ (432 Marke + 244 Abstand + 157 Sitemap) */
.site-footer__bottom { display: grid; grid-template-columns: 833px 1fr; align-items: baseline; margin-top: 53px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 27px; font-weight: 600; text-transform: uppercase; }
.site-credit a:hover { color: var(--c-accent); }

/* ---------- Home: Hero ---------- */
/* Höhe wächst ab 1440 px mit (40vw = Bildformat 2,5:1) → Bild wird auf großen Bildschirmen nicht oben/unten abgeschnitten */
.hero { position: relative; height: max(575px, 40vw); overflow: hidden; color: var(--c-white); background: #bfbfbf; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; top: 0; left: -2.57%; width: 105.14%; height: 100%; object-position: bottom; }
.hero__content { position: relative; padding-top: max(175px, 12.15vw); } /* 175/1440 → Text bleibt im gleichen Verhältnis im Bild */
.hero__content p { width: 411px; margin-top: var(--gap-heading); }
.hero__content .btn { margin-top: 28px; }
/* Slider (2026-11-25): Bilder überblenden, Punkte = Buttons (Abstand wie hero-dots.svg: Mitte zu Mitte 20 px) */
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide--dim::after { /* Bilder ohne dunkle Fläche links: Verlauf, damit der weiße Text lesbar bleibt */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(38, 35, 33, .62) 0%, rgba(38, 35, 33, .35) 40%, rgba(38, 35, 33, 0) 68%);
}
.hero__bg--laptop { object-position: 50% 60%; }
.hero__bg--desk { object-position: 50% 15%; }
.hero__slide--dim:nth-child(2)::after { background: linear-gradient(90deg, rgba(20, 18, 17, .72) 0%, rgba(20, 18, 17, .45) 40%, rgba(20, 18, 17, 0) 68%); }
.hero__dots { position: absolute; bottom: 40px; right: max(calc(var(--side) - 5px), calc(50% - 720px + 79px)); display: flex; }
.hero__dot {
  display: grid; place-items: center; width: 20px; height: 20px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.hero__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-white); transition: background-color .3s ease; }
.hero__dot[aria-current="true"]::before { background: var(--c-accent); }
.hero__dot:focus-visible { outline: 2px solid var(--c-white); outline-offset: 0; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* ---------- Home: IT Solutions ---------- */
.intro { padding: 152px 0 133px; text-align: center; }
.intro p { width: min(894px, 100%); margin: var(--gap-heading) auto 0; }

/* ---------- Home: Services ---------- */
.services {
  padding-top: 47px;
  background: linear-gradient(var(--c-accent) 0 313px, transparent 313px);
}
.services > .container > .display { color: var(--c-white); text-align: center; }
.service-cards {
  display: grid; grid-template-columns: repeat(4, 300px); justify-content: space-between; row-gap: 26px;
  margin-top: var(--gap-heading);
}
.service-card {
  position: relative; display: block;
  height: 312px; padding: 55px 30px 17px 48px;
  background: var(--c-surface);
  border-radius: 10px 60px 10px 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(78, 75, 72, .15); }
.service-card__icon { display: flex; align-items: center; height: 70px; }
.service-card h3 { margin-top: 25px; font-size: var(--fs-card); font-weight: 600; }
.service-card p { margin-top: 16px; max-width: 204px; }
.service-card__arrow {
  position: absolute; right: 30px; bottom: 17px; width: 27px; height: 27px;
  transform: scaleX(-1); /* im Design gespiegelt */
}

/* ---------- Home: Kontakt (gleicher Block wie Kontaktseite) + Google-Karte (2-Klick) ---------- */
.contact-page--home { padding: 152px 0 32px; }
.gmap {
  position: relative; overflow: hidden;
  height: 480px;
  background: var(--c-surface);
  border-radius: var(--radius);
}
.gmap__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(1.5px); transform: scale(1.02); }
.gmap__consent {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 32px));
  padding: 28px 32px 26px;
  background: rgba(255, 255, 255, .94); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(78, 75, 72, .18);
  text-align: center;
}
.gmap__consent p { font-size: var(--fs-small); }
.gmap__consent p a, .gmap__ext { text-decoration: underline; }
.gmap__load { margin-top: 20px; }
.gmap__ext { display: block; margin-top: 14px; font-size: var(--fs-small); }
.gmap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gmap.is-loaded .gmap__preview, .gmap.is-loaded .gmap__consent, .gmap.is-loaded .map__credit { display: none; }
.map__credit {
  position: absolute; right: 0; bottom: 0;
  padding: 2px 8px; border-top-left-radius: 6px;
  background: rgba(255, 255, 255, .8); font-size: 12px; line-height: 18px;
}

/* ---------- Impressum / Datenschutz (2026-11-25) ---------- */
.legal { padding: 148px 0 164px; }
.legal .accent-line { margin-top: 35px; margin-left: -5px; }
.legal__body { max-width: 760px; margin-top: 56px; }
.legal__body h2 { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 44px 0 12px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p + p { margin-top: 14px; }
.legal__body a { text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--c-accent); }
.legal__date { font-size: 15px; color: var(--c-nav); margin-top: 40px !important; }
.todo { white-space: nowrap; background: #ffe08a; color: #6b3d00; padding: 0 6px; border-radius: 4px; font-weight: 700; }
.footer-legal a[aria-current="page"] { text-decoration: underline; }

/* ---------- Home: FAQ ---------- */
.faq { padding: 153px 0 169px; }
.faq__grid { display: grid; grid-template-columns: 720px 1fr; column-gap: 208px; }
.faq__list { margin-top: var(--gap-heading); }
.faq-item { border: 2px solid var(--c-surface); border-radius: var(--radius); }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 62px; padding: 0 15px 0 18px;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary img { width: 24px; height: 24px; flex: none; }
.faq-item .icon-minus { display: none; }
.faq-item[open] { background: var(--c-surface); }
.faq-item[open] .icon-minus { display: block; }
.faq-item[open] .icon-plus { display: none; }
.faq-item[open] summary { min-height: 0; padding-top: 19px; padding-bottom: 17px; }
.faq-item__answer { max-width: 485px; padding: 0 18px 22px; }


/* ---------- Service-Detailseite ---------- */
.service-detail {
  display: grid;
  grid-template-columns: max(var(--side), calc(50vw - 640px)) minmax(0, 680px) 1fr;
  grid-template-rows: auto auto;
  padding: 104px 0 165px; /* Figma 208 px, auf Wunsch halbiert */
}
/* Über der Figma-Breite: rechts gleicher Rand wie links → Bild endet bündig mit „FR“ im Header
   (bis 1440 px läuft es wie im Figma-Entwurf bis an den rechten Rand) */
@media (min-width: 1441px) {
  .service-detail { grid-template-columns: calc(50vw - 640px) minmax(0, 680px) 1fr calc(50vw - 640px); }
}
.service-detail__intro { grid-column: 2; grid-row: 1; }
.service-detail__intro .accent-line { margin-top: 36px; }
.service-detail__intro .title { margin-top: 37px; margin-left: -2px; }
.service-detail__intro p { max-width: 553px; margin-top: 27px; }
.service-detail__media {
  grid-column: 3; grid-row: 1;
  margin-left: 119px; /* 879 px − 80 − 680 */
  margin-top: 16px;
}
.service-detail__image { position: relative; overflow: hidden; aspect-ratio: 561 / 351; }
.service-detail__image img {
  position: absolute; left: -89.3%; top: -8.55%; width: 205.35%; height: 109.4%;
}
.service-detail__image img.is-cover { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.service-detail__image--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--c-surface); color: var(--c-white);
}
.features { grid-column: 2; grid-row: 2; margin-top: 34px; }
.feature { display: grid; grid-template-columns: 70px 1fr; column-gap: 14px; }
.feature + .feature { margin-top: 41px; }
.feature__icon { display: flex; justify-content: center; padding-top: 2px; }
.feature__icon img { align-self: center; width: auto; height: auto; max-width: 53px; max-height: 53px; }
.feature:first-child .feature__icon img[width="70"] { max-width: 70px; max-height: 70px; } /* großes WLAN-Icon wie im Design */
.feature h3 { font-size: var(--fs-card); font-weight: 600; }
.feature p { max-width: 461px; margin-top: 9px; }
.feature--wide p { max-width: 592px; }
.service-detail__cta { grid-column: 3; grid-row: 2; margin: 116px 0 0 119px; }
.service-detail__cta p { width: 354px; max-width: 100%; margin-top: 30px; }
.service-detail__cta .btn { margin-top: 29px; }

/* ---------- Kontaktseite ---------- */
.contact-page { padding: 148px 0 164px; }
.contact-page .accent-line { margin-top: 35px; margin-left: -5px; }
.contact-page__grid { display: grid; grid-template-columns: 552px 1fr; margin-top: 39px; }
.contact-list { margin: 30px 0 0 -3px; }
.contact-list li { display: flex; align-items: center; min-height: 49px; }
.contact-list li + li { margin-top: 40px; }
.contact-list__icon { display: flex; align-items: center; width: 49px; flex: none; }
.contact-list a, .contact-list address { margin-left: 16px; font-weight: 600; font-style: normal; }
.contact-list a:hover { color: var(--c-accent); }
.contact-list__addr { display: block; }
.contact-list__addr + .contact-list__addr { margin-top: 12px; }

.contact-form { max-width: 726px; margin-top: 11px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-form > .field + .field, .contact-form__row + .field { margin-top: 10px; }
.field input, .field textarea {
  display: block; width: 100%;
  border: 2px solid var(--c-surface); border-radius: var(--radius);
  background: var(--c-white);
  padding: 0 18px;
  transition: border-color .2s ease;
}
.field input { height: 66px; }
.field textarea { height: 265px; padding-top: 21px; padding-bottom: 18px; resize: vertical; line-height: var(--lh); }
.field input::placeholder, .field textarea::placeholder { color: var(--c-text); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); }
.contact-form__actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 33px; }
.form-status { font-size: var(--fs-small); }
.form-status[hidden] { display: none; }
.form-status.is-error { color: #a3352b; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a3352b; }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }
/* Köderfeld gegen Spam-Bots: für Menschen unsichtbar, nicht per display:none (manche Bots überspringen das) */
.contact-form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Kleinere Bildschirme (vorläufig — Mobile-Design folgt aus Figma) ---------- */
@media (max-width: 1340px) {
  .service-cards { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 26px; }
  .services { background: linear-gradient(var(--c-accent) 0 313px, transparent 313px); }
  .faq__grid { grid-template-columns: minmax(0, 720px) 1fr; column-gap: 64px; }
  .footer-cols { margin-left: auto; grid-template-columns: 157px 195px 120px; }
  .site-footer__bottom { grid-template-columns: 1fr 315px; }
  .service-detail__media, .service-detail__cta { margin-left: 64px; }
  .contact-page__grid { grid-template-columns: minmax(0, 480px) 1fr; column-gap: 40px; }
}
@media (max-width: 980px) {
  :root { --fs-display: 40px; --fs-title: 32px; }
  .main-nav { margin-left: 56px; }
  .faq__grid, .contact-page__grid { grid-template-columns: 1fr; }
  .gmap { height: 400px; }
  .service-detail { grid-template-columns: 24px 1fr 24px; padding-top: 48px; }
  .service-detail__media, .service-detail__cta, .features { grid-column: 2; margin-left: 0; }
  .service-detail__media { grid-row: 2; margin-top: 40px; }
  .features { grid-row: 3; margin-top: 56px; }
  .service-detail__cta { grid-row: 4; margin-top: 64px; }
  .contact-page, .legal { padding-top: 96px; }
  .contact-form { margin-top: 48px; }
  .site-footer__top { flex-direction: column; }
  .footer-cols { margin: 48px 0 0; grid-template-columns: 157px 195px auto; justify-content: start; column-gap: 0; }
  .site-footer__bottom { grid-template-columns: 1fr; gap: 16px; }
  .footer-legal { margin-left: 157px; }
}

/* ---------- Mobile (Figma "iPhone 18 Pro", 402 px) ---------- */
@media (max-width: 767px) {
  :root { --fs-display: 32px; --fs-title: 20px; --side: 21px; }
  .optical { margin-left: -2px; }
  .d-only { display: none; }
  .btn { width: 100%; }

  /* Header: nur Logo mittig — Menü + Sprache sitzen in der festen Leiste unten (die ist immer sichtbar, Header scrollt deshalb mit) */
  .site-header { position: relative; }
  html { scroll-padding-top: 0; }
  .site-header__inner { position: relative; justify-content: center; }
  .site-header .logo { width: 90px; height: 38px; }
  .logo__mark { width: 90px; height: 26.4307px; }
  .logo__claim { top: 34.58px; left: 13.27px; width: 63.447px; height: 3.42824px; }
  .site-footer .logo { width: 106px; height: 44.827px; }
  .site-footer .logo__mark { width: 106px; height: 31.1789px; }
  .site-footer .logo__claim { top: 40.82px; left: 15.65px; width: 74.6971px; height: 4.01442px; }
  .header-tools { display: none; }

  /* Feste Leiste unten: Burger links, Sprache rechts, immer sichtbar (auch über dem offenen Menü) */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between;
    height: calc(56px + env(safe-area-inset-bottom)); padding: 0 calc(var(--side) - 12px) env(safe-area-inset-bottom);
    background: var(--c-header); border-top: 1px solid var(--c-surface);
    box-shadow: 0 -6px 16px rgba(78, 75, 72, .08);
  }
  .menu-toggle {
    display: block; width: 44px; height: 44px; padding: 12px; border: 0; background: none; cursor: pointer;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle img { width: 20px; height: 20px; }
  .mobile-bar .lang { gap: 0; }
  .mobile-bar .lang a {
    display: flex; align-items: center; height: 44px; padding: 0 6px;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  }
  .mobile-bar .lang a:last-child { padding-right: 12px; }
  .main-nav { display: none; }

  /* Menü als Vollbild-Overlay */
  .menu-panel { position: fixed; inset: 0; z-index: 50; overflow-y: auto; border: 0; box-shadow: none; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .menu-panel__inner { flex-direction: column; gap: 32px; padding: 32px 0 48px; }
  .menu-panel__pages { display: block; }
  .menu-panel__services ul { columns: 1; }
  .menu-panel li + li { margin-top: 10px; }
  .menu-close {
    display: block; align-self: flex-end; margin-bottom: -8px;
    border: 0; background: none; padding: 0; font-size: 32px; line-height: 1; color: var(--c-text); cursor: pointer;
  }

  /* Hero */
  .hero { height: 788px; }
  .hero__bg { object-position: 50% 0; } /* Handybild 1:2, oben ausgerichtet, wird nur zugeschnitten statt verzerrt */
  .hero__overlay { display: none; }
  .hero__content { padding-top: 396px; }
  .hero__content p { width: 100%; margin-top: 27px; }
  .hero__content .btn { margin-top: 36px; }
  .hero__dots { right: calc(var(--side) - 4px); bottom: 43px; }
  .hero__dot { width: 16px; height: 16px; }
  .hero__dot::before { width: 8px; height: 8px; }
  /* Bilder 2/3 sind Querformat: oben zeigen und in dunkle Fläche auslaufen lassen (wie Handy-Headerbild), statt stark zu zoomen */
  .hero__slide--dim { --fade: #2a2827; background: var(--fade); }
  .hero__slide--dim:nth-child(2) { --fade: #1b1918; }
  .hero__slide--dim .hero__bg { height: 58%; }
  .hero__slide--dim::after, .hero__slide--dim:nth-child(2)::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 32%, var(--fade) 58%); }
  .hero__bg--laptop { object-position: 42% 50%; }
  .hero__bg--desk { object-position: 72% 50%; }

  /* IT Solutions */
  .intro { padding: 110px 0 116px; }
  .intro p { margin-top: 26px; }

  /* Services-Karten 2 × 2, ohne Beschreibung */
  .services { padding-top: 31px; background: linear-gradient(var(--c-accent) 0 194px, transparent 194px); }
  .service-cards { grid-template-columns: 1fr 1fr; gap: 14px 15px; margin-top: 33px; }
  .service-card { height: 180px; padding: 33px 8px 0; text-align: center; border-radius: 5.77px 34.6px 5.77px 5.77px; }
  .service-card__icon { justify-content: center; height: 61px; }
  .service-card--computer img { width: 49px; height: 49px; }
  .service-card--smartphone img { width: 37.4305px; height: 41.3196px; }
  .service-card--wifi img { width: 61px; height: 61px; }
  .service-card--support img { width: 47px; height: 47px; }
  .service-card--shield img { width: 45px; height: 45px; }
  .service-card--house img, .service-card--printer img { width: 47px; height: 47px; }
  .service-card--email img { width: 41px; height: 41px; }
  .service-card h3 { margin-top: 5px; font-size: var(--fs-body); }
  .service-card p { display: none; }
  .service-card .service-card__arrow { right: 17px; bottom: 10px; width: 20px; height: 20px; }

  /* Kontakt + Karte (Startseite) */
  .contact-page--home { padding: 110px 0 40px; }
  .gmap { height: 360px; }
  .gmap__consent { padding: 22px 20px 20px; }

  /* FAQ */
  .faq { padding: 110px 0 120px; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__list { margin-top: 32px; }
  .faq-item { position: relative; border-width: 1px; border-radius: 5px; }
  .faq-item + .faq-item { margin-top: 5px; }
  .faq-item summary { display: block; min-height: 83px; padding: 21px 43px 22px 21px; }
  .faq-item summary img { position: absolute; right: 18px; bottom: 7px; }
  .faq-item[open] summary { min-height: 0; padding: 21px 43px 18px 21px; }
  .faq-item[open] summary img { top: 14px; bottom: auto; }
  .faq-item__answer { max-width: 358px; padding: 0 21px 21px; }

  /* Service-Detailseite */
  .service-detail { grid-template-columns: var(--side) minmax(0, 1fr) var(--side); padding: 55px 0 120px; }
  .service-detail__intro .accent-line { margin-top: 31px; }
  .service-detail__intro .title { margin: 34px 0 0 -1px; }
  .service-detail__intro p { margin-top: 30px; }
  .service-detail__media { display: none; }
  .features { grid-row: 2; margin-top: 110px; }
  .feature { grid-template-columns: 50px 1fr; column-gap: 12px; }
  .feature + .feature { margin-top: 39px; }
  .feature__icon { padding-top: 0; }
  .feature__icon img { max-width: 43px; max-height: 43px; }
  .feature:first-child .feature__icon img[width="70"] { max-width: 54px; max-height: 54px; }
  .feature p { margin-top: 11px; }
  .service-detail__cta { grid-row: 3; margin: 110px 0 0; }
  .service-detail__cta .title { margin-left: -2px; }
  .service-detail__cta p { margin-top: 30px; }
  .service-detail__cta .btn { margin-top: 37px; }

  /* Kontaktseite */
  .contact-page { padding: 110px 0 120px; }
  .legal { padding: 110px 0 120px; }
  .legal .accent-line { margin: 31px 0 0; }
  .legal__body { margin-top: 36px; }
  .legal__body h2 { font-size: 21px; margin-top: 36px; }
  .contact-page .accent-line { margin: 31px 0 0; }
  .contact-page__grid { grid-template-columns: 1fr; margin-top: 33px; }
  .contact-page .title { margin-left: -1px; }
  .contact-list { margin-top: 41px; }
  .contact-list li + li { margin-top: 38px; }
  .contact-form { margin-top: 117px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 6px; }
  .contact-form > .field + .field, .contact-form__row + .field { margin-top: 6px; }
  .contact-form__actions { flex-direction: column-reverse; align-items: stretch; gap: 12px; margin-top: 40px; }

  /* Footer gestapelt */
  .site-footer__inner { padding: 66px 0 62px; }
  .site-footer__top { flex-direction: column; }
  .footer-brand, .footer-line { width: 100%; }
  .footer-line { margin-top: 29px; }
  .footer-cols { grid-template-columns: 1fr; row-gap: 45px; margin: 53px 0 0; }
  .site-footer__bottom { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 26px; margin-top: 59px; }
  .site-footer__bottom p { text-align: center; }
  .footer-legal { justify-content: space-between; gap: 12px; margin-left: -1px; }
}

/* Hero: breite Handy-Variante (quadratisches Bild) für 450–767px – Laptop + Icons im Bild halten */
@media (min-width: 450px) and (max-width: 767px) {
  .hero__slide--header .hero__bg { object-position: 85% 0; }
}
