/* godlaya.de — Variante 5 „Glas": weiche Farbflächen, Glaskarten, iOS-nah */

:root {
  --font-round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --base: #FBFBFD;
  --ink: #14161C;
  --ink-2: #4B5162;
  --ink-3: #767D90;

  --glass: rgba(255, 255, 255, 0.60);
  --glass-hi: rgba(255, 255, 255, 0.85);
  --glass-line: rgba(255, 255, 255, 0.75);
  --glass-edge: rgba(19, 24, 40, 0.07);
  --shadow-1: 0 1px 2px rgba(19, 24, 40, 0.05);
  --shadow-2: 0 14px 34px -12px rgba(19, 24, 40, 0.16);
  --shadow-3: 0 22px 50px -14px rgba(19, 24, 40, 0.22);

  --blue: rgba(74, 118, 255, 0.34);
  --violet: rgba(163, 106, 255, 0.28);
  --peach: rgba(255, 158, 120, 0.30);
  --mint: rgba(90, 208, 200, 0.20);

  --accent: #3B6DF5;
  --sh-live: #1E7F53;
  --sh-live-bg: rgba(35, 160, 100, 0.14);
  --sh-tf: #2A5ED6;
  --sh-tf-bg: rgba(70, 120, 245, 0.14);
  --sh-beta: #7B41C9;
  --sh-beta-bg: rgba(150, 100, 235, 0.14);
  --sh-eigen: #A6591C;
  --sh-eigen-bg: rgba(230, 140, 60, 0.16);
  --sh-privat: #5A6072;
  --sh-privat-bg: rgba(90, 100, 125, 0.12);

  --radius-card: 24px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  --squircle: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M50 0C89.1 0 100 10.9 100 50s-10.9 50-50 50S0 89.1 0 50 10.9 0 50 0Z"/></svg>');
}

@media (prefers-color-scheme: dark) {
  :root {
    --base: #0F1115;
    --ink: #F2F3F7;
    --ink-2: #AEB5C4;
    --ink-3: #838B9C;

    --glass: rgba(255, 255, 255, 0.055);
    --glass-hi: rgba(255, 255, 255, 0.10);
    --glass-line: rgba(255, 255, 255, 0.11);
    --glass-edge: rgba(0, 0, 0, 0.45);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 16px 40px -14px rgba(0, 0, 0, 0.65);
    --shadow-3: 0 26px 60px -16px rgba(0, 0, 0, 0.75);

    --blue: rgba(74, 118, 255, 0.34);
    --violet: rgba(163, 106, 255, 0.30);
    --peach: rgba(255, 140, 100, 0.20);
    --mint: rgba(70, 190, 185, 0.18);

    --accent: #7FA2FF;
    --sh-live: #6BDCA5;
    --sh-live-bg: rgba(60, 190, 130, 0.16);
    --sh-tf: #9BB8FF;
    --sh-tf-bg: rgba(90, 135, 250, 0.18);
    --sh-beta: #C9A6FF;
    --sh-beta-bg: rgba(160, 115, 240, 0.18);
    --sh-eigen: #FFC08A;
    --sh-eigen-bg: rgba(235, 150, 75, 0.16);
    --sh-privat: #A9B1C2;
    --sh-privat-bg: rgba(160, 172, 195, 0.13);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Farbflächen im Hintergrund ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(54% 46% at 6% -6%,   var(--blue),   transparent 70%),
    radial-gradient(58% 48% at 98% 10%,  var(--violet), transparent 72%),
    radial-gradient(52% 40% at 72% 56%,  var(--peach),  transparent 72%),
    radial-gradient(58% 44% at -4% 78%,  var(--mint),   transparent 74%),
    radial-gradient(64% 50% at 54% 108%, var(--violet), transparent 76%);
}

/* ---------- Grundbausteine ---------- */

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  padding: 10px 16px; border-radius: 0 0 12px 0;
  background: var(--glass-hi); color: var(--ink); z-index: 20;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--font-round); font-weight: 600; letter-spacing: -0.015em; margin: 0; }

a { color: inherit; }

/* ---------- Kopfzeile ---------- */

.site-header { position: sticky; top: 0; z-index: 10; padding: 12px 24px 0; }

.bar {
  max-width: 1052px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 9px 10px 9px 18px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-1), var(--shadow-2);
}

.wordmark {
  font-family: var(--font-round); font-weight: 600; font-size: 16px;
  letter-spacing: -0.01em; text-decoration: none;
}

.contact-link {
  font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 7px 15px; border-radius: 999px;
  background: var(--glass-hi);
  border: 1px solid var(--glass-line);
  transition: transform 160ms var(--ease-out);
}
.contact-link:active { transform: scale(0.97); }

/* ---------- Hero ---------- */

.hero { padding: clamp(56px, 11vw, 118px) 0 clamp(28px, 5vw, 46px); }

.hero-line {
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 17ch;
  margin: 0 0 22px;
}

.hero-sub {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0 0 26px;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

.chip {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 6px 13px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-1);
}

/* ---------- Abschnitte ---------- */

section { padding: clamp(26px, 4vw, 40px) 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin: 0 0 20px; padding: 0 4px;
}

.section-header { font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -0.02em; }

.section-count { font-size: 13px; color: var(--ink-3); font-weight: 500; }

/* ---------- Raster ---------- */

.grid { display: grid; gap: 18px; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Glaskarte ---------- */

.card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-1), var(--shadow-2);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

/* heller Innenrand — das „Glas" bekommt eine Kante */
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65),
              inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

@media (prefers-color-scheme: dark) {
  .card::before {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10),
                inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: scale(1.01); box-shadow: var(--shadow-1), var(--shadow-3); }
}

.wrap > .card + .card,
.wrap > .card + .grid { margin-top: 18px; }

.card--full { grid-column: 1 / -1; }

.card-head { display: flex; align-items: flex-start; gap: 14px; }

.card-title { min-width: 0; }

.proj-name { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 4px; }

.proj-lead { font-size: 15.5px; color: var(--ink-2); margin: 0; }

.proj-body { font-size: 15px; color: var(--ink-2); margin: 0; }

.proj-note { font-size: 13.5px; color: var(--ink-3); margin: 0; }

.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-top: auto; padding-top: 4px;
}

/* ---------- Symbol im Squircle ---------- */

.icon {
  flex: none;
  display: block;
  width: 48px; height: 48px;
  filter: drop-shadow(0 5px 12px rgba(19, 24, 40, 0.20));
}
.icon--lg { width: 60px; height: 60px; }

.icon-shape {
  display: block; width: 100%; height: 100%;
  position: relative;
  -webkit-mask-image: var(--squircle);
  mask-image: var(--squircle);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.icon-shape img { display: block; width: 100%; height: 100%; object-fit: cover; }
.icon-shape::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.icon-shape--mono {
  background:
    linear-gradient(150deg, rgba(120, 155, 255, 0.85), rgba(170, 120, 245, 0.85));
  color: #FFFFFF;
  display: grid; place-items: center;
}
.icon-shape--mono svg { width: 100%; height: 100%; }

.card--slim .icon { margin-bottom: 2px; }

/* ---------- Status-Kapsel und Knopf ---------- */

.status {
  margin: 0;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  padding: 5px 11px; border-radius: 999px;
  background: var(--sh-privat-bg); color: var(--sh-privat);
}
.status--live   { background: var(--sh-live-bg);   color: var(--sh-live); }
.status--tf     { background: var(--sh-tf-bg);     color: var(--sh-tf); }
.status--beta   { background: var(--sh-beta-bg);   color: var(--sh-beta); }
.status--eigen  { background: var(--sh-eigen-bg);  color: var(--sh-eigen); }
.status--privat { background: var(--sh-privat-bg); color: var(--sh-privat); }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 7px 14px; border-radius: 999px;
  color: var(--ink);
  background: var(--glass-hi);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-1);
  transition: transform 160ms var(--ease-out);
}
.link-btn .arrow { transition: transform 200ms var(--ease-out); color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .link-btn:hover .arrow { transform: translateX(3px); }
}
.link-btn:active { transform: scale(0.97); }

.inline-link { color: var(--accent); text-decoration-color: rgba(120, 150, 250, 0.5); text-underline-offset: 3px; }

/* ---------- Breite Karten mit Aufnahmen ---------- */

.card--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 26px; align-items: center;
  padding: 26px;
}

.wide-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.shots { display: flex; gap: 10px; align-items: flex-start; justify-content: flex-end; min-width: 0; }
.shots img {
  display: block; flex: 1 1 0; width: 100%; height: auto; min-width: 0;
  border-radius: 16px;
  border: 1px solid var(--glass-line);
  box-shadow: 0 12px 28px -10px rgba(19, 24, 40, 0.32);
  background: var(--glass-hi);
}
.shots--three img:nth-child(2) { margin-top: 16px; }
.shots--three img:nth-child(3) { margin-top: 32px; }
.shots--two img:nth-child(2) { margin-top: 20px; }
.shots--three { max-width: 440px; margin-left: auto; }
.shots--two { max-width: 292px; margin-left: auto; }

/* Vier Aufnahmen: gestaffelt und leicht überlappend, damit sie in die Karte passen */
.shots--four { max-width: 466px; margin-left: auto; gap: 0; }
.shots--four img:nth-child(n) { margin-left: -22px; }
.shots--four img:nth-child(1) { margin-left: 0; }
.shots--four img:nth-child(2) { margin-top: 12px; }
.shots--four img:nth-child(3) { margin-top: 24px; }
.shots--four img:nth-child(4) { margin-top: 36px; }

/* ---------- Schmale Karten ---------- */

.card--slim { padding: 20px; }
.card--slim .proj-name { font-size: 18px; }

.card--row { flex-direction: row; align-items: flex-start; gap: 16px; }
.row-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.card--prose { padding: 26px; }
.card--prose p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* ---------- Fuß ---------- */

.site-footer { padding: clamp(30px, 5vw, 56px) 0 clamp(34px, 6vw, 64px); }

.footer-card {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 18px 24px;
  border-radius: 20px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-1), var(--shadow-2);
}

.footer-mail { margin: 0; font-family: var(--font-round); font-weight: 600; font-size: 15px; }

.footer-links { margin: 0; font-size: 14px; color: var(--ink-3); }
.footer-links a { text-decoration: none; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--ink); }
}
.footer-links .sep { padding: 0 8px; opacity: 0.6; }

.footer-card--center { justify-content: center; text-align: center; }

/* ---------- Rechtsseiten ---------- */

.legal-main {
  width: 100%;
  max-width: 860px;
  margin: clamp(26px, 5vw, 52px) auto clamp(10px, 2vw, 18px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-card);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-1), var(--shadow-2);
}

.legal-main h1 {
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.legal-main .sub {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink-3);
}

.legal-main h2 {
  font-size: 18px;
  letter-spacing: -0.015em;
  margin: 30px 0 8px;
}

.legal-main p,
.legal-main address,
.legal-main li {
  font-size: 15.5px;
  color: var(--ink-2);
}

.legal-main p { margin: 0 0 12px; }
.legal-main address { font-style: normal; margin: 0 0 12px; }
.legal-main ul { margin: 0 0 12px; padding-left: 20px; }
.legal-main li { margin: 0 0 4px; }

.legal-main .email {
  font-family: var(--font-round);
  font-weight: 600;
  color: var(--ink);
}

.legal-main a { color: var(--accent); text-underline-offset: 3px; }

.legal-main .muted {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--glass-line);
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- Auftauchen beim Scrollen ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .card, .link-btn, .contact-link, .link-btn .arrow { transition: none; }
}

/* ---------- Schmalere Fenster ---------- */

@media (max-width: 900px) {
  .card--wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .shots--two { max-width: 340px; margin-left: 0; }
  .shots--three { max-width: 460px; }
  .shots--four { max-width: 480px; margin-left: 0; }
  .shots { justify-content: flex-start; }
  .grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-header { padding: 10px 18px 0; }
  .grid--two, .grid--three { grid-template-columns: minmax(0, 1fr); }
  .card, .card--wide, .card--prose { padding: 18px; }
  .card--wide { gap: 18px; }
  .shots--three, .shots--two { max-width: none; margin-left: 0; }
  .shots { gap: 8px; justify-content: flex-start; }
  .shots--three img:nth-child(2) { margin-top: 10px; }
  .shots--three img:nth-child(3) { margin-top: 20px; }
  .shots--two img:nth-child(2) { margin-top: 14px; }
  /* Vier Aufnahmen auf dem Handy als 2×2 — nichts läuft über den Rand */
  .shots--four {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; max-width: none; margin-left: 0;
  }
  .shots--four img:nth-child(n) { margin: 0; }
  .hero-line { max-width: none; }
  .card--row { flex-direction: column; gap: 12px; }
}
