/* ==========================================================================
   SORRA & CO. – Stylesheet (helles Design nach Logo & Visitenkarte)
   Aufbau: 1 Schriften · 2 Variablen · 3 Basis · 4 Bausteine
           5 Sektionen in Seitenreihenfolge · 6 Animationen · 7 Unterseiten
   Farben/Abstände nur über die Variablen in :root ändern.
   ========================================================================== */

/* ---------- 1. Schriften (lokal, DSGVO-konform) ---------- */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Griechisch: Montserrat und Libre Baskerville haben keine griechischen Buchstaben – dafür springt Inter ein */
@font-face { font-family: "Inter"; src: url("../fonts/inter-greek-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("../fonts/libre-baskerville-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- 2. Variablen ---------- */
:root {
  /* Farben – wie Logo & Visitenkarte: Weiß/Grau, Schwarz, Rot nur als Akzent */
  --red:        #D7191F;
  --red-tint:   #EDC3C5;   /* zartes Rot der Deko-Linien */
  --bg:         #F7F7F7;   /* Seitenhintergrund (Visitenkarte) */
  --surface:    #FFFFFF;   /* Karten, Panels */
  --surface-2:  #EFEFED;
  --text:       #0E0F11;
  --text-muted: #5C5F66;
  --line:       rgba(0, 0, 0, 0.10);
  --line-strong:rgba(0, 0, 0, 0.28);

  /* Schriften */
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;           /* wie im Logo */
  --font-serif:   "Libre Baskerville", "Inter", Georgia, "Times New Roman", serif; /* wie auf der Visitenkarte */
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Maße */
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 30px;
  --radius-sm: 16px;
  --section-space: clamp(80px, 12vw, 150px);
  --nav-h: 84px;
  --shadow: 0 20px 50px rgba(14, 15, 17, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 30px); -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { position: relative; width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-space) 0; }
.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; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 200; padding: 10px 18px; border-radius: var(--radius); background: var(--text); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Deko-Linien wie auf der Visitenkarte */
.deko { position: absolute; width: clamp(220px, 32vw, 460px); height: auto; pointer-events: none; z-index: 0; }
.deko--hero { top: 70px; left: -40px; opacity: .9; }
.deko--contact { right: -40px; bottom: 40px; transform: rotate(180deg); opacity: .9; }

/* ---------- 4. Bausteine ---------- */

/* Buttons – immer als Pille */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius);
  font: 600 15px/1.2 var(--font-display);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn__arrow, .btn__icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translate(3px, -3px); }
.btn--primary { background: var(--text); color: #fff; border: 1px solid var(--text); padding: 10px 20px; }
.btn--primary:hover { background: var(--red); border-color: var(--red); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--line-strong); padding: 12px 24px; }
.btn--outline:hover { border-color: var(--text); background: var(--surface); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* Sektionsmarke: Icon + Titel links, Button rechts, Linie darunter */
.marker {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px;
  padding-bottom: 22px; margin-bottom: clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
}
.marker__label { display: flex; align-items: center; gap: 8px; font: 600 14px/1.4 var(--font-display); text-transform: uppercase; letter-spacing: 1.5px; }
.marker__icon { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }

/* ---------- 5a. Intro (erster Besuch) ---------- */
.intro { display: none; }
.show-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  animation: intro-failsafe 0s 3s forwards; /* Sicherheitsnetz, falls JavaScript hängt */
}
.intro__logo { width: min(260px, 60vw); animation: intro-pulse 1s ease-in-out infinite alternate; }
.intro__curve { position: absolute; left: 0; top: 100%; width: 100%; height: 200px; fill: var(--bg); }
@keyframes intro-failsafe { to { visibility: hidden; } }
@keyframes intro-pulse { from { opacity: 1; transform: scale(1); } to { opacity: .55; transform: scale(.97); } }

/* ---------- 5b. Navigation ---------- */
.nav { position: fixed; inset: 16px 0 auto; z-index: 100; pointer-events: none; transition: top .35s var(--ease); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h); pointer-events: auto;
  border: 1px solid transparent; border-radius: 60px;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled { top: 10px; }
.nav.is-scrolled .nav__inner {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-color: var(--line); box-shadow: var(--shadow);
  padding-inline: 22px;
  max-width: calc(var(--container) + 44px);
}
.nav__logo img { height: 60px; width: auto; }
.nav__menu ul {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 5px;
  border: 1px solid var(--line); border-radius: 40px; background: rgba(255, 255, 255, .7);
}
.nav__menu a { display: block; padding: 8px 18px; border-radius: 30px; font: 500 15px/27px var(--font-display); color: var(--text-muted); text-decoration: none; transition: color .2s, background-color .2s; }
.nav__menu a:hover { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .7); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.burger:hover { border-color: var(--text); background: var(--surface); }
.burger__icon { width: 20px; height: 20px; }

/* Sprachumschalter */
.lang { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 40px; background: rgba(255, 255, 255, .7); }
.lang a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 30px; font: 600 13px/1 var(--font-display); color: var(--text-muted); text-decoration: none; transition: color .2s, background-color .2s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { background: var(--text); color: #fff; }
.lang--menu { align-self: flex-start; }
@media (max-width: 340px) { .nav__actions > .lang { display: none; } }
@media (max-width: 899px) { .nav__menu { display: none; } }
@media (max-width: 420px) { .nav__cta { display: none; } .nav__logo img { height: 52px; } }

/* ---------- 5c. Offcanvas-Menü ---------- */
.offcanvas { position: fixed; inset: 0; z-index: 150; }
.offcanvas__backdrop { position: absolute; inset: 0; background: rgba(14, 15, 17, .35); opacity: 0; transition: opacity .35s var(--ease); }
.offcanvas__panel {
  position: absolute; inset: 0 0 0 auto; width: min(420px, 100%);
  display: flex; flex-direction: column; gap: 40px;
  padding: 100px 40px 40px; background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.offcanvas.is-open .offcanvas__backdrop { opacity: 1; }
.offcanvas.is-open .offcanvas__panel { transform: none; }
.offcanvas__close { position: absolute; top: 30px; right: 30px; }
.offcanvas__links { list-style: none; margin: 0; padding: 0; }
.offcanvas__links a { display: block; padding: 8px 0; font: 800 clamp(28px, 7vw, 38px)/1.1 var(--font-display); text-transform: uppercase; text-decoration: none; transition: color .2s; }
.offcanvas__links a:hover { color: var(--red); }
.offcanvas__contact { margin-top: auto; display: grid; gap: 6px; color: var(--text-muted); }
.offcanvas__contact a { text-decoration: none; }
.offcanvas__contact a:hover { color: var(--red); }

/* ---------- 5d. Hero ---------- */
.hero { position: relative; padding-top: calc(16px + var(--nav-h) + 30px); }
.hero .container { z-index: 1; }
.hero__media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 20px); }
.hero__tile { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero__tile img { width: 100%; height: clamp(220px, 46vh, 520px); object-fit: cover; }
/* weicher Übergang nach unten, damit „MONTAGE“ auf hellem Grund steht */
.hero__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(247, 247, 247, .75) 78%, var(--bg) 100%); }
.hero__title { display: block; text-align: center; }
.hero__word {
  display: block; margin-top: -0.42em; position: relative;
  font: 800 clamp(40px, 16.5vw, 250px)/1 var(--font-display);
  text-transform: uppercase; letter-spacing: -0.02em;
}
.hero__tagline { display: block; margin-top: 18px; font: 700 clamp(18px, 2.2vw, 28px)/1.3 var(--font-serif); text-transform: uppercase; letter-spacing: .5px; }
.hero__sub { display: block; max-width: 640px; margin: 14px auto 0; font: 400 clamp(15px, 1.4vw, 18px)/1.6 var(--font-serif); color: var(--text-muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- 5e. Einsatzfelder – gestapelte Karten (Text links, Foto rechts) ---------- */
.stack { display: grid; gap: 40px; padding-bottom: 10px; }
.stack__card {
  --card-h: min(600px, 76vh);
  position: sticky; top: calc(50vh - var(--card-h) / 2 + 40px);
  height: var(--card-h);
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transform-origin: center top;
  box-shadow: 0 -10px 40px rgba(14, 15, 17, .08);
}
.stack__content { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 5vw, 64px); }
.stack__title { font: 800 clamp(28px, 5.5vw, 76px)/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.stack__text { font: 400 clamp(15px, 1.4vw, 18px)/1.6 var(--font-serif); color: var(--text-muted); max-width: 32ch; }
.stack__media { position: relative; }
.stack__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 6px 0 0; padding: 0; }
.tags li { padding: 6px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); font: 500 13px/1.3 var(--font-display); }
@media (max-width: 760px) {
  .stack__card { --card-h: min(560px, 82vh); grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .stack__media { order: -1; }
  .stack__content { gap: 10px; padding: 22px 22px 26px; }
}

/* ---------- 5f. Über uns + Kennzahlen ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.about__lead { font: 700 clamp(24px, 2.8vw, 36px)/1.3 var(--font-display); letter-spacing: -.5px; }
.about__text { color: var(--text-muted); font-family: var(--font-serif); font-size: 15px; line-height: 1.8; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(50px, 7vw, 90px); border-top: 1px solid var(--line); }
.stat { min-width: 0; display: flex; flex-direction: column; padding: 28px 24px 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__label { order: -1; font: 600 13px/1.4 var(--font-display); text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }
.stat__value { display: flex; align-items: flex-end; gap: 6px; margin-top: 10px; font: 700 clamp(52px, 6vw, 84px)/1 var(--font-display); letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.stat__value--text { flex-wrap: wrap; font-size: clamp(24px, 3.6vw, 52px); letter-spacing: -1px; }
.stat__unit { white-space: nowrap; font-size: 16px; letter-spacing: 0; color: var(--red); padding-bottom: .5em; font-weight: 700; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* ---------- 5g. Leistungen – weißes Panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 70px); box-shadow: var(--shadow); }
.services { list-style: none; margin: 0; padding: 0; }
.panel__note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 13px/1.6 var(--font-serif); color: var(--text-muted); }
.service {
  display: grid; grid-template-columns: 70px 1fr 48px; align-items: center; gap: 20px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: 0; }
.service__num { font: 400 15px/1 var(--font-serif); color: var(--text-muted); }
.service__body { min-width: 0; justify-self: center; position: relative; text-align: center; }
.service__word { overflow-wrap: anywhere; font: 700 clamp(22px, 4.2vw, 50px)/1.25 var(--font-display); letter-spacing: -1px; transition: color .3s var(--ease); }
.service__icon { width: 30px; height: 30px; justify-self: end; color: var(--text-muted); transition: color .3s var(--ease), transform .3s var(--ease); }
.service:hover .service__word { color: var(--red); }
.service:hover .service__icon { color: var(--red); transform: rotate(-8deg); }
.pills { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pills li { padding: 5px 14px; border-radius: var(--radius); background: var(--red); color: #fff; font: 500 13px/1.4 var(--font-display); white-space: nowrap; }

/* Desktop mit Maus: Pillen erscheinen erst beim Hover, rund um das Wort verteilt */
@media (hover: hover) and (min-width: 900px) {
  .pills { margin: 0; }
  .pills li { position: absolute; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .4s .2s var(--ease), transform .4s .2s var(--ease); pointer-events: none; }
  .pills li:nth-child(1) { top: -30px; left: -18%; rotate: -5deg; }
  .pills li:nth-child(2) { top: -26px; right: -22%; rotate: 4deg; }
  .pills li:nth-child(3) { bottom: -26px; left: -8%; rotate: 3deg; }
  .pills li:nth-child(4) { bottom: -30px; right: -26%; rotate: -4deg; }
  .service:hover .pills li { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .service { grid-template-columns: 34px 1fr 26px; gap: 12px; }
  .service__body { justify-self: start; text-align: left; }
  .pills { justify-content: flex-start; }
  .pills li { font-size: 12px; padding: 4px 11px; }
  .service__icon { width: 22px; height: 22px; }
}

/* ---------- 5h. Partner – Logo-Band ---------- */
.refs__head { text-align: center; }
.refs__title { font: 800 clamp(34px, 5.5vw, 72px)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; }
.refs__text { max-width: 560px; margin: 16px auto 0; font-family: var(--font-serif); color: var(--text-muted); }
.marquee { margin-top: clamp(40px, 6vw, 60px); overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; }
.marquee__track li { display: grid; place-items: center; width: 240px; height: 110px; border-right: 1px solid var(--line); }
.marquee__track img { width: auto; height: auto; max-width: 160px; max-height: 58px; opacity: .7; transition: opacity .3s; }
.marquee__track li:hover img { opacity: 1; }
.marquee.is-running .marquee__track { animation: marquee 30s linear infinite; }
.marquee.is-running:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 5i. Projekte – Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.gallery__item { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-sm); background: var(--surface); overflow: visible; }
.lightbox::backdrop { background: rgba(14, 15, 17, .75); }
.lightbox img { width: 100%; max-height: 92vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__close { position: absolute; top: -18px; right: -18px; background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 640px) { .lightbox__close { top: 8px; right: 8px; } }

/* ---------- 5j. Kontakt ---------- */
.contact { padding-bottom: var(--section-space); overflow: hidden; }
.contact .container { z-index: 1; }
.contact__title { font: 800 clamp(48px, 11vw, 160px)/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.03em; text-align: center; }
.contact__title span { color: var(--red); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 6vw, 90px); margin-top: clamp(40px, 6vw, 70px); padding: clamp(28px, 5vw, 60px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact__lead { font: 700 clamp(20px, 2vw, 24px)/1.4 var(--font-display); letter-spacing: -.3px; }
.contact__list { display: grid; gap: 16px; margin-top: 32px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--text-muted); }
.contact__list a { color: var(--text); font-weight: 500; text-decoration: none; }
.contact__list a:hover { color: var(--red); }
.contact__icon { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.fee { margin-top: 32px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg); border-left: 3px solid var(--red); }
.fee__title { font: 700 16px/1.4 var(--font-display); }
.fee__title span { font-weight: 500; font-size: 13px; color: var(--text-muted); }
.fee__text { margin-top: 4px; font-family: var(--font-serif); font-size: 14px; color: var(--text-muted); }

/* Formular */
.form { display: grid; gap: 30px; }
.form__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__legend { padding: 0; margin-bottom: 12px; font: 600 13px/1.4 var(--font-display); text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 9px 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); font: 500 14px/1.3 var(--font-display); transition: background-color .2s, border-color .2s, color .2s; }
.choice:hover span { border-color: var(--text); }
.choice input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > label:not(.dropzone) { font: 500 14px/1.4 var(--font-body); color: var(--text-muted); }
.field input:not([type="checkbox"]):not([type="file"]), .field textarea {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; font-size: 17px; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: #8A8D93; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--text); }
.field [aria-invalid="true"] { border-bottom-color: var(--red) !important; }
.field__error { font-size: 14px; color: var(--red); }
.req { color: var(--red); }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }

.dropzone {
  display: grid; justify-items: center; gap: 6px; padding: 34px 20px; text-align: center; cursor: pointer;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .2s, background-color .2s;
}
.dropzone:hover, .dropzone:focus-within, .dropzone.is-dragover { border-color: var(--red); background: #FDF3F3; }
.dropzone__icon { width: 26px; height: 26px; color: var(--red); }
.dropzone__title { font: 600 15px/1.4 var(--font-display); }
.dropzone__hint { font-size: 13px; color: var(--text-muted); }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.files:empty { display: none; }
.file-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; border-radius: var(--radius); background: var(--surface-2); font-size: 14px; }
.file-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item button { flex-shrink: 0; border: 0; background: none; padding: 0; color: var(--text-muted); cursor: pointer; text-decoration: underline; }
.file-item button:hover { color: var(--red); }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex-shrink: 0; }
.consent a { color: var(--text); }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__note { font-size: 13px; color: var(--text-muted); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 15px; }
.alert--ok { background: var(--surface-2); border: 1px solid var(--line-strong); }
.alert--error { background: #FDF3F3; border: 1px solid var(--red-tint); color: #8E1015; }
.alert a { color: inherit; }

/* ---------- 5k. Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-block: 60px; }
.footer__logo { width: 180px; }
.footer__tagline { margin-top: 14px; font: 700 13px/1.4 var(--font-serif); text-transform: uppercase; letter-spacing: .5px; }
.footer__col { color: var(--text-muted); line-height: 28px; }
.footer__col a { text-decoration: none; }
.footer__col p + p { margin-top: 10px; }
.footer__col a:hover { color: var(--red); }
.footer__label { margin-bottom: 8px; font: 600 13px/1.4 var(--font-display); text-transform: uppercase; letter-spacing: 1.5px; color: var(--text); }
.footer__seo { padding-bottom: 24px; font-size: 13px; line-height: 1.7; color: var(--text-muted); max-width: 900px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--red); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- 5l. Scroll-Fortschritt-Button ---------- */
.to-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 90;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(15px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top__ring { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; }
.to-top__icon { width: 18px; height: 18px; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; } }

/* ---------- 5m. Andere Sprachen: längere Wörter → große Überschriften etwas kleiner ---------- */
html[lang="el"] { --font-serif: "Inter", system-ui, sans-serif; } /* einheitliche Schrift für Griechisch */
html[lang="en"] .hero__word { font-size: clamp(28px, 10vw, 200px); }
html[lang="el"] .hero__word { font-size: clamp(40px, 12.5vw, 190px); }
html[lang="el"] .contact__title { font-size: clamp(32px, 7.6vw, 112px); }
html[lang="el"] .stack__title { font-size: clamp(28px, 4.2vw, 56px); overflow-wrap: anywhere; }
html[lang="el"] .service__word { font-size: clamp(24px, 3.6vw, 44px); }
html[lang="el"] .refs__title { font-size: clamp(28px, 4.6vw, 60px); }

/* ---------- 6. Animationen ---------- */
/* Einblenden beim Scrollen – nur wenn JavaScript läuft, sonst ist alles sofort sichtbar */
.js .reveal { opacity: 0; transform: translate3d(0, 60px, 0); }
.js .reveal.is-visible { animation: fadeInUp 1.2s var(--ease) forwards; }
.js .stats .reveal:nth-child(2).is-visible { animation-delay: .1s; }
.js .stats .reveal:nth-child(3).is-visible { animation-delay: .2s; }
.js .stats .reveal:nth-child(4).is-visible { animation-delay: .3s; }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 60px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stack__card { position: relative; top: 0; }
  .marquee__track { flex-wrap: wrap; width: 100%; justify-content: center; }
}

/* ---------- 7. Unterseiten (Impressum, Datenschutz, Danke) ---------- */
.page-header { padding-block: 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-header .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.page-header img { height: 56px; width: auto; }
.page { max-width: 760px; padding-block: 80px 120px; }
.page h1 { font: 800 clamp(40px, 8vw, 72px)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; }
.page h2 { margin-top: 40px; font: 700 20px/1.3 var(--font-display); }
.page p { margin-top: 14px; color: var(--text-muted); }
.page a { color: var(--text); }
.page .note { margin-top: 24px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--red-tint); background: #FDF3F3; color: var(--text); }
.page .btn { margin-top: 40px; }
