/* gewerke.css: Gewerkseiten und Übersicht (Website/gewerke/).
   Ruhig und flach: dunkler Grund der Seite, ein Grün als Akzent, Space Grotesk, kein Glas, keine Blur-Flächen.
   Werte kommen aus css/site-base.css (--sn-*). Alles hängt an body.gw, damit keine andere Seite berührt wird.
   Gebaut von Website/scripts/build_gewerke.py, nicht von Hand ändern. */

body.gw {
  --gw-line: rgba(255, 255, 255, .09);
  --gw-line-strong: rgba(255, 255, 255, .16);
  --gw-surface: #0c1118;
  --gw-surface-2: #10171f;
  --gw-radius: 18px;
  /* Chrom als Material, sparsam: nur Haarlinien und Rahmen, keine Flächen */
  --gw-chrome: linear-gradient(115deg, #f2f5f8 0%, #8f9ba7 28%, #e6ebf0 52%, #6f7b87 78%, #dfe5ea 100%);
  --gw-ease: cubic-bezier(.16, 1, .3, 1);
  --gw-pad: clamp(1.25rem, 4vw, 3rem);
  --gw-space: clamp(4.5rem, 9vw, 8rem);
}

/* flacher Grund: die weichen Farbflächen der übrigen Unterseiten entfallen hier */
body.gw .aurora-bg, body.gw .aurora-stars { display: none; }
html:has(body.gw) { background: #080b0e; }

body.gw > main.gw-main {
  max-width: 1400px; margin: 0 auto;
  padding: clamp(6.2rem, 9vw, 7.6rem) var(--gw-pad) 0;
}
body.gw .gw-main > section { margin-top: var(--gw-space); }
body.gw .gw-main > section:first-of-type { margin-top: 0; }
body.gw .gw-main > .gw-crumbs { margin-bottom: clamp(1.4rem, 3vw, 2.6rem); }
body.gw .gw-main h1, body.gw .gw-main h2, body.gw .gw-main h3 { text-wrap: balance; }
body.gw .gw-main p { text-wrap: pretty; }

/* Brotkrumen */
body.gw .gw-crumbs { font-size: .86rem; color: var(--sn-muted); margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
body.gw .gw-crumbs a { color: var(--sn-muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
body.gw .gw-crumbs a:hover { color: var(--sn-text); border-color: var(--gw-line-strong); }
body.gw .gw-crumbs [aria-current] { color: var(--sn-text); }
body.gw .gw-crumbs i { font-style: normal; margin: 0 .55rem; opacity: .5; }

/* Überschriften */
body.gw .gw-main h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1.06; letter-spacing: -.022em;
  font-weight: 700; margin: 0 0 1.4rem; overflow-wrap: break-word; hyphens: manual;
}
body.gw .gw-main h1 .accent { color: var(--sn-green); font-family: var(--sn-serif-italic); font-style: italic; font-weight: 400; letter-spacing: -.01em; padding-bottom: .08em; }
body.gw .gw-main h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); line-height: 1.12; letter-spacing: -.018em; font-weight: 700; margin: 0 0 1rem; }
body.gw .gw-main h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 600; margin: 0 0 .5rem; letter-spacing: -.005em; }
body.gw .gw-lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.7; color: var(--sn-muted); max-width: 62ch; margin: 0; }
body.gw .gw-text { color: var(--sn-muted); line-height: 1.75; max-width: 62ch; margin: 0; }

/* Knöpfe: gleiche Form und Schrift wie das Knopfsystem der Seite, flach gefüllt */
body.gw .gw-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  font-family: var(--sn-sans); font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
  padding: .95rem 2rem; border-radius: 99px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--gw-ease), background-color .2s, border-color .2s, color .2s;
}
body.gw .gw-btn--solid { background: var(--sn-green); color: #06120c; }
body.gw .gw-btn--line { background: transparent; color: var(--sn-text); border-color: var(--gw-line-strong); }
body.gw .gw-btn:focus-visible, body.gw .gw-main a:focus-visible, body.gw .gw-main summary:focus-visible { outline: 2px solid var(--sn-green); outline-offset: 3px; }
body.gw .gw-btn:active { transform: translateY(1px) scale(.99); }
@media (hover: hover) {
  body.gw .gw-btn--solid:hover { background: #5affbb; transform: translateY(-2px); }
  body.gw .gw-btn--line:hover { border-color: rgba(255, 255, 255, .42); transform: translateY(-2px); }
}
body.gw .gw-cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ─── Einstieg: Text links, Foto rechts ─── */
body.gw .gw-hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
body.gw .gw-hero-media { margin: 0; border-radius: 22px; overflow: hidden; background: var(--gw-surface-2); aspect-ratio: 5 / 4; border: 1px solid transparent; background-image: linear-gradient(var(--gw-surface-2), var(--gw-surface-2)), var(--gw-chrome); background-origin: border-box; background-clip: padding-box, border-box; }
body.gw .gw-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  body.gw .gw-hero-media img { animation: gw-settle 1.4s var(--gw-ease) both; }
  @keyframes gw-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
  body.gw .gw-hero-text > * { animation: gw-rise .8s var(--gw-ease) both; }
  body.gw .gw-hero-text > *:nth-child(2) { animation-delay: .06s; }
  body.gw .gw-hero-text > *:nth-child(3) { animation-delay: .12s; }
  body.gw .gw-hero-text > *:nth-child(4) { animation-delay: .18s; }
  @keyframes gw-rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ─── Abschnittskopf links, Inhalt rechts ─── */
body.gw .gw-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
body.gw .gw-split-head { position: sticky; top: 6.5rem; }
body.gw .gw-rows { list-style: none; margin: 0; padding: 0; }
body.gw .gw-rows > li { padding: 1.7rem 0; border-top: 1px solid var(--gw-line); }
body.gw .gw-rows > li:first-child { border-top: 0; padding-top: 0; }
body.gw .gw-rows > li:last-child { padding-bottom: 0; }
body.gw .gw-rows p { margin: 0; color: var(--sn-muted); line-height: 1.7; max-width: 56ch; }

/* ─── Fakt zum Gewerk ─── */
body.gw .gw-fact { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: 24px; padding: clamp(1.8rem, 4.5vw, 3.6rem); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.2rem, 5vw, 5rem); align-items: center; }
body.gw .gw-fact h2 { margin: 0; }
body.gw .gw-fact p { margin: 0; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.6; color: var(--sn-text); }

/* ─── Leistungsbereiche und Suchbegriffe ─── */
body.gw .gw-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 6rem); }
body.gw .gw-tags { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
body.gw .gw-tags li { border: 1px solid var(--gw-line-strong); border-radius: 99px; padding: .5rem 1rem; font-size: .95rem; color: var(--sn-text); }
body.gw .gw-terms { list-style: none; margin: 1.4rem 0 0; padding: 0; }
body.gw .gw-terms li { padding: .85rem 0; border-bottom: 1px solid var(--gw-line); color: var(--sn-text); font-family: var(--sn-mono); font-size: .92rem; letter-spacing: .01em; }
body.gw .gw-terms li:first-child { border-top: 1px solid var(--gw-line); }

/* ─── Vorgehen: vier Schritte in echter Reihenfolge ─── */
body.gw .gw-steps { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 3rem); counter-reset: gw; }
body.gw .gw-steps li { position: relative; padding-top: 1.3rem; counter-increment: gw; }
body.gw .gw-steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--gw-chrome); opacity: .8; }
body.gw .gw-steps li::before { content: counter(gw); display: block; font-family: var(--sn-mono); font-size: .9rem; color: var(--sn-green); margin-bottom: .9rem; }
body.gw .gw-steps p { margin: 0; color: var(--sn-muted); line-height: 1.65; font-size: .98rem; }

/* ─── Live-Seiten ─── */
body.gw .gw-live { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2rem); margin-top: 2rem; }
body.gw .gw-live-item { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); padding: clamp(1.4rem, 2.6vw, 2.2rem); }
body.gw .gw-live-item p { margin: 0 0 1rem; color: var(--sn-muted); line-height: 1.65; }
body.gw .gw-live-item h3 { margin-bottom: .35rem; }
body.gw .gw-live-item a { color: var(--sn-green); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(45, 255, 160, .35); transition: border-color .2s; }
body.gw .gw-live-item a:hover { border-color: var(--sn-green); }

/* ─── Pakete ─── */
body.gw .gw-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.6rem); margin-top: 2.4rem; }
body.gw .gw-plan { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); padding: clamp(1.5rem, 2.6vw, 2.2rem); display: flex; flex-direction: column; }
body.gw .gw-plan--main { border-color: transparent; background-image: linear-gradient(var(--gw-surface-2), var(--gw-surface-2)), var(--gw-chrome); background-origin: border-box; background-clip: padding-box, border-box; }
body.gw .gw-plan h3 { font-size: 1.05rem; margin-bottom: 1.2rem; }
body.gw .gw-plan-price { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
body.gw .gw-plan-sub { margin: .35rem 0 0; color: var(--sn-muted); font-size: .95rem; min-height: 1.5em; }
body.gw .gw-plan ul { list-style: none; margin: 1.5rem 0 0; padding: 1.3rem 0 0; border-top: 1px solid var(--gw-line); display: grid; gap: .6rem; color: var(--sn-text); font-size: .96rem; line-height: 1.5; }
body.gw .gw-note { margin: 1.4rem 0 0; color: var(--sn-muted); font-size: .92rem; }
body.gw .gw-more { display: inline-block; margin-top: 1.2rem; color: var(--sn-green); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(45, 255, 160, .35); }
body.gw .gw-more:hover { border-color: var(--sn-green); }

/* ─── Häufige Fragen ─── */
body.gw .gw-faq { max-width: 860px; margin-top: 1.8rem; border-top: 1px solid var(--gw-line); }
body.gw .gw-faq details { border-bottom: 1px solid var(--gw-line); }
body.gw .gw-faq summary { list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; font-size: 1.08rem; font-weight: 600; line-height: 1.4; position: relative; }
body.gw .gw-faq summary::-webkit-details-marker { display: none; }
body.gw .gw-faq summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--sn-muted); border-bottom: 2px solid var(--sn-muted); transform: rotate(45deg); transition: transform .25s var(--gw-ease); }
body.gw .gw-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
body.gw .gw-faq details p { margin: 0 0 1.5rem; color: var(--sn-muted); line-height: 1.75; max-width: 64ch; }

/* ─── Verlinkung ─── */
body.gw .gw-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
body.gw .gw-links a { border: 1px solid var(--gw-line-strong); border-radius: 99px; padding: .55rem 1.05rem; color: var(--sn-text); font-size: .94rem; text-decoration: none; transition: border-color .2s, background-color .2s; }
body.gw .gw-links a:hover { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .04); }
body.gw .gw-linkblock + .gw-linkblock { margin-top: 2.4rem; }
body.gw .gw-linkblock h3 { margin: 0; color: var(--sn-muted); font-weight: 500; font-size: 1rem; }

/* ─── Abschluss ─── */
body.gw .gw-end { border-top: 1px solid var(--gw-line); padding-top: var(--gw-space); padding-bottom: var(--gw-space); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
body.gw .gw-end h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; }
body.gw .gw-end .gw-text { margin-top: 1rem; }
body.gw .gw-end .gw-cta-row { margin-top: 0; justify-content: flex-start; }

/* ─── Übersicht ─── */
body.gw .gw-hub-head { max-width: 920px; }
body.gw .gw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.1rem, 2.2vw, 1.8rem); margin: 0; padding: 0; list-style: none; }
body.gw .gw-grid > li { grid-column: span 4; }
body.gw .gw-grid > li.s7 { grid-column: span 7; }
body.gw .gw-grid > li.s5 { grid-column: span 5; }
body.gw .gw-grid > li.s6 { grid-column: span 6; }
body.gw .gw-tile { display: block; text-decoration: none; color: inherit; height: 100%; }
body.gw .gw-tile-img { display: block; border-radius: var(--gw-radius); overflow: hidden; background: var(--gw-surface-2); aspect-ratio: 4 / 3; border: 1px solid var(--gw-line); }
body.gw .gw-grid > li.s7 .gw-tile-img { aspect-ratio: 7 / 3; }
body.gw .gw-grid > li.s5 .gw-tile-img { aspect-ratio: 5 / 3; }
body.gw .gw-grid > li.s6 .gw-tile-img { aspect-ratio: 2 / 1; }
body.gw .gw-tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--gw-ease); }
body.gw .gw-tile-name { display: block; margin-top: 1rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
body.gw .gw-tile-desc { display: block; margin-top: .3rem; color: var(--sn-muted); font-size: .96rem; line-height: 1.5; }
body.gw .gw-tile-go { display: inline-block; margin-top: .55rem; color: var(--sn-green); font-size: .9rem; font-weight: 600; }
@media (hover: hover) {
  body.gw .gw-tile:hover .gw-tile-img img { transform: scale(1.04); }
  body.gw .gw-tile:hover .gw-tile-name { color: var(--sn-green); }
}
body.gw .gw-tile:focus-visible { outline: 2px solid var(--sn-green); outline-offset: 6px; border-radius: 12px; }

/* Einblenden beim Scrollen: nur dort, wo der Browser es nativ kann, sonst ist alles sofort sichtbar */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body.gw .gw-reveal { animation: gw-in linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
    @keyframes gw-in { from { transform: translateY(28px); } to { transform: none; } }
  }
}

/* ─── Tablet ─── */
@media (max-width: 1000px) {
  body.gw .gw-hero, body.gw .gw-split, body.gw .gw-fact, body.gw .gw-end { grid-template-columns: minmax(0, 1fr); }
  body.gw .gw-split-head { position: static; }
  body.gw .gw-hero-media { order: -1; aspect-ratio: 16 / 10; }
  body.gw .gw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
  body.gw .gw-plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  body.gw .gw-grid > li, body.gw .gw-grid > li.s7, body.gw .gw-grid > li.s5, body.gw .gw-grid > li.s6 { grid-column: span 6; }
  body.gw .gw-grid > li .gw-tile-img { aspect-ratio: 16 / 11 !important; }
  body.gw .gw-end { align-items: start; }
}
/* ─── Telefon ─── */
@media (max-width: 700px) {
  body.gw .gw-two, body.gw .gw-live { grid-template-columns: minmax(0, 1fr); }
  body.gw .gw-steps { grid-template-columns: minmax(0, 1fr); }
  body.gw .gw-grid > li, body.gw .gw-grid > li.s7, body.gw .gw-grid > li.s5, body.gw .gw-grid > li.s6 { grid-column: span 12; }
  body.gw .gw-cta-row .gw-btn { width: 100%; white-space: normal; text-align: center; }
  body.gw .gw-hero-media { border-radius: 18px; aspect-ratio: 4 / 3; }
  body.gw .gw-main h1 { font-size: clamp(2rem, 8.4vw, 2.5rem); }
}
