/* YourWebMedia – Stylesheet
   Keine externen Abhängigkeiten (keine CDNs, keine Webfonts von Drittanbietern). */

:root {
  --green: #74a950;
  --green-strong: #5e9140;
  --green-soft: #eef6e8;
  --ink: #0e1712;
  --ink-2: #1b2a20;
  --text: #1d2420;
  --muted: #5b6660;
  --line: #e3e8e4;
  --bg: #ffffff;
  --bg-alt: #f6f8f6;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 23, 18, .04), 0 8px 24px rgba(14, 23, 18, .06);
  --shadow-hover: 0 2px 4px rgba(14, 23, 18, .05), 0 18px 40px rgba(14, 23, 18, .12);
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6ebe7;
    --muted: #9aa69f;
    --line: #26332b;
    --bg: #0b120e;
    --bg-alt: #101a14;
    --card: #131f18;
    --green-soft: #17271b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .4);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-strong); text-underline-offset: 3px; }
a:hover { color: var(--green); }
@media (prefers-color-scheme: dark) { a { color: var(--green); } a:hover { color: #93c672; } }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
@media (prefers-color-scheme: dark) {
  .site-header.is-scrolled, .site-header.is-solid { background: rgba(11, 18, 14, .85); }
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.brand .logo-dark { display: none; }
.site-header.is-scrolled .brand .logo-light,
.site-header.is-solid .brand .logo-light { display: none; }
.site-header.is-scrolled .brand .logo-dark,
.site-header.is-solid .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  .site-header .brand .logo-light { display: block !important; }
  .site-header .brand .logo-dark { display: none !important; }
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.site-header.is-scrolled .nav a, .site-header.is-solid .nav a { color: var(--text); }
.site-header.is-scrolled .nav a:hover, .site-header.is-solid .nav a:hover { background: var(--green-soft); color: var(--text); }
.nav a.nav-cta { background: var(--green); color: #fff !important; }
.nav a.nav-cta:hover { background: var(--green-strong); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
  color: #fff;
}
.site-header.is-scrolled .nav-toggle, .site-header.is-solid .nav-toggle { color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 12px 24px 24px; box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { color: var(--text) !important; padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { margin-top: 14px; text-align: center; border-radius: 999px; border: 0; }
  .site-header.menu-open { background: var(--bg); }
  .site-header.menu-open .brand .logo-light { display: none; }
  .site-header.menu-open .brand .logo-dark { display: block; }
  .site-header.menu-open .nav-toggle { color: var(--text); }
}
@media (max-width: 820px) and (prefers-color-scheme: dark) {
  .site-header.menu-open .brand .logo-light { display: block !important; }
  .site-header.menu-open .brand .logo-dark { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(116, 169, 80, .35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(116, 169, 80, .18), transparent 60%),
    linear-gradient(180deg, #0e1712 0%, #122019 100%);
  padding: 170px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 0%, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--green); }
.hero-lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, .78); max-width: 38em; margin-bottom: 2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero-art { justify-self: center; width: 100%; max-width: 380px; filter: drop-shadow(0 30px 60px rgba(116, 169, 80, .35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero-art { animation: none; } }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s, color .2s; border: 0; cursor: pointer;
  font-size: 1rem;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff !important; box-shadow: 0 10px 24px rgba(116, 169, 80, .35); }
.btn-primary:hover { background: var(--green-strong); transform: translateY(-1px); }
.btn-ghost { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; margin-top: 56px; justify-content: start; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: rgba(255, 255, 255, .65); font-size: .95rem; }

@media (max-width: 900px) {
  .hero { padding: 140px 0 90px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .stats { gap: 28px; }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before { display: none; }
@media (max-width: 700px) { .section { padding: 80px 0; } }

/* Leistungen */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow);
}
.feature p { color: var(--muted); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-strong); margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) { .icon { color: var(--green); } }
.icon svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* Projekte */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--green); color: inherit; }
.project-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.monogram {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--c, var(--green));
}
.project h3 { margin: 0; }
.project .domain { font-size: .875rem; color: var(--muted); }
.project p { color: var(--muted); flex: 1; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-strong); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; align-self: flex-start;
}
@media (prefers-color-scheme: dark) { .tag { color: var(--green); } }
.project .arrow {
  position: absolute; top: 28px; right: 28px; width: 22px; height: 22px; color: var(--muted);
  transition: transform .2s, color .2s;
}
a.project:hover .arrow { transform: translate(3px, -3px); color: var(--green); }
.project-more {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; border-color: transparent;
  justify-content: center;
}
.project-more p { color: rgba(255, 255, 255, .7); flex: none; }
.project-more strong { font-size: 2.6rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 10px; }
@media (max-width: 1000px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }

/* Über uns */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; }
.about-list svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 3px; }
.about-card {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; border-radius: 24px;
  padding: 48px; position: relative; overflow: hidden;
}
.about-card::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -120px; bottom: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 169, 80, .45), transparent 70%);
}
.about-card blockquote { margin: 0; font-size: 1.35rem; line-height: 1.5; font-weight: 600; position: relative; z-index: 1; }
.about-card cite { display: block; margin-top: 20px; font-style: normal; color: rgba(255, 255, 255, .65); font-size: .95rem; position: relative; z-index: 1; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } .about-card { padding: 36px; } }

/* Kontakt */
.contact {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 56px; box-shadow: var(--shadow);
}
.contact h2 { margin-bottom: .4em; }
.contact p { color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  color: var(--text); background: var(--bg-alt); border: 1px solid var(--line); transition: border-color .2s, transform .15s;
}
.contact-list a:hover { border-color: var(--green); transform: translateX(2px); color: var(--text); }
.contact-list .icon { width: 42px; height: 42px; margin: 0; border-radius: 10px; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list strong { font-weight: 650; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; } }

/* ---------- Rechtstexte ---------- */
.page-hero {
  background: linear-gradient(180deg, #0e1712 0%, #122019 100%); color: #fff; padding: 150px 0 64px;
}
.page-hero p { color: rgba(255, 255, 255, .7); margin: 0; }
.legal { padding: 64px 0 100px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.4em; padding-top: .2em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal address { font-style: normal; }
.legal .box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 1em 0 1.5em; }
.legal .box p:last-child { margin: 0; }
.toc { columns: 2; column-gap: 32px; list-style: none; padding: 0 !important; margin: 0 0 2em; font-size: .95rem; }
.toc li { break-inside: avoid; }
@media (max-width: 640px) { .toc { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 56px 0 32px; font-size: .95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.site-footer img { height: 34px; width: auto; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .06);
  transition: background .2s;
}
.socials a:hover { background: var(--green); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 24px; font-size: .875rem; color: rgba(255, 255, 255, .5); }

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Neu-Badge und ehemalige Projekte */
.badge-new {
  display: inline-block; vertical-align: middle; margin-left: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #fff; background: var(--green); padding: 2px 8px; border-radius: 999px;
}
.history {
  margin-top: 56px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.history h3 { font-size: 1.35rem; }
.history-intro { color: var(--muted); }
.history-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.history-item { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.history-item p { color: var(--muted); font-size: .95rem; margin: 10px 0 0; }
.history-names { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.history-names svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.history-old { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.projects-more { text-align: center; color: var(--muted); margin: 40px 0 0; }
@media (max-width: 900px) { .history-list { grid-template-columns: 1fr; } .history { padding: 28px 22px; } }

/* Zeitleiste im Bereich Über uns */
.timeline-title { position: relative; z-index: 1; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.timeline { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 0 0 22px 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(116, 169, 80, .25); }
.timeline li::after { content: ""; position: absolute; left: 4px; top: 22px; bottom: 2px; width: 2px; background: rgba(255, 255, 255, .15); }
.timeline li:last-child::after { display: none; }
.timeline strong { font-size: 1.15rem; font-weight: 800; }
.timeline span { color: rgba(255, 255, 255, .78); }
@media (max-width: 420px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* Für Sie entwickeln: Aufforderung zur Anfrage */
.cta-band {
  margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; border-radius: var(--radius); padding: 32px 36px;
}
.cta-band h3 { margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .72); margin: 0; }
@media (max-width: 640px) { .cta-band { padding: 28px 24px; } }
