:root {
  --bg: #f5f3ff;
  --card: #ffffff;
  --text: #1e1b2e;
  --muted: #5b5f6b;
  --purple: #7c3aed;
  --blue: #2563eb;
  --line: rgba(124, 58, 237, 0.15);
  --shadow: 0 4px 24px rgba(124, 58, 237, 0.12);
  --gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --radius: 14px;
}
html[data-theme="dark"] {
  --bg: #0f0e17;
  --card: #1a1827;
  --text: #e8e6f0;
  --muted: #a3a8b4;
  --purple: #a78bfa;
  --blue: #60a5fa;
  --line: rgba(167, 139, 250, 0.18);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --gradient: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 10vw, 96px); }
main section.wrap { padding-top: 48px; padding-bottom: 0; }
main section.wrap:last-child { padding-bottom: 72px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 {
  font-size: clamp(2.1rem, 5vw, 2.5rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(1.6rem, 3.5vw, 1.875rem); font-weight: 700; color: var(--purple); }
h3 { font-size: 1.3rem; font-weight: 600; color: var(--blue); }

.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--muted); margin: 0 0 .75em; }
.lead { font-size: 1.1rem; max-width: 34em; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 100px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
html[data-theme="dark"] .btn { color: #0f0e17; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--purple) !important; border: 2px solid var(--purple); padding: 12px 28px; }

.intro { max-width: 40em; }
.cards { display: grid; gap: 24px; margin-top: 32px; }
.card h3 { margin-bottom: .6em; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.claim { font-weight: 600; }
.card ul, section > ul { padding-left: 1.2em; }
.card li, section > ul li { margin-bottom: .4em; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.case { display: grid; gap: 40px; align-items: start; margin-top: 32px; }
.case img { width: 220px; border-radius: var(--radius); box-shadow: var(--shadow); }
blockquote {
  margin: 24px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--purple);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
blockquote p { margin: 0 0 .5em; }
blockquote footer { font-style: normal; color: var(--muted); }

.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.social a { margin-right: 18px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--purple); }

@media (min-width: 900px) {
  .hero { padding: 88px 0 40px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .case { grid-template-columns: 240px 1fr; }
}

/* ── Gemeinsame Teile für alle Seiten (nicht Fruchthandel) ── */
.topbar {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
  text-align: center;
  font-size: .9rem;
  padding: 8px 16px;
  letter-spacing: .02em;
}
.site-nav { border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; justify-content: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--purple); }

.tagline { font-style: italic; font-size: 1.15rem; margin: 0 0 .5em; }
.hero .wrap > .btn { margin-top: 8px; }
section > .btn { margin-top: 8px; }

.card img { border-radius: 10px; margin-bottom: 18px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card blockquote { margin-top: 16px; }
.box { margin-top: 40px; }

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 8px 0 24px; }
.gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.copy { color: var(--muted); }

/* Rechtstexte: schlicht, gut lesbar */
.legal { max-width: 820px; padding-top: 56px; padding-bottom: 72px; overflow-wrap: anywhere; }
.legal h1 { margin-bottom: 1em; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.25rem; margin-top: 1.6em; }
.legal h4, .legal h5 { font-size: 1.05rem; margin: 1.4em 0 .4em; color: var(--text); }
.legal table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.legal td, .legal th { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 220px; }
  .gallery-small { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gallery-small img { height: auto; aspect-ratio: 1; }
  .site-nav .wrap { gap: 18px; font-size: .95rem; }
}

/* Textseiten wie „Über mich“: schmaler, Abschnitte näher zusammen */
.narrow .wrap { max-width: 860px; }
.narrow section.wrap { padding-top: 36px; }
.narrow section.wrap:last-child { padding-bottom: 72px; }
.narrow .hero { padding-bottom: 0; }
.narrow h3 { margin-top: 1.2em; }
.narrow .hero .lead { margin-bottom: 0; }
.intro:last-child { margin-bottom: 0; }
.hero { padding-bottom: 8px; }

/* Zeilenlänge begrenzen (ca. 80–90 Zeichen) */
main section > p, main section > ul, .case p, .case blockquote { max-width: 46em; }
.box { max-width: 50em; }
.legal { max-width: 780px; }

/* Hell/Dunkel-Schalter: fest unten rechts, gut sichtbar */
#theme-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 48px; height: 48px; margin: 0; padding: 0;
  border: none; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
#theme-toggle:hover { transform: scale(1.08); }
#theme-toggle svg { width: 22px; height: 22px; fill: #fff; stroke: #fff; }
#theme-toggle .i-moon, html[data-theme="dark"] #theme-toggle .i-sun { display: flex; }
#theme-toggle .i-sun, html[data-theme="dark"] #theme-toggle .i-moon { display: none; }
