@import url("../fonts/fonts.css");

/* ===========================================================
   Hunky Dory L.L.C. — Future Earth
   Farbschema A · Space Grotesk + Inter · WCAG 2.1 AA
   =========================================================== */

:root {
  --color-primary:    #0B3D2E;
  --color-accent:     #00D4AA;
  --color-bg:         #0A0F1E;
  --color-card-bg:    #131B2E;
  --color-text:       #E8F4F1;
  --color-text-muted: #9FB3C8;
  --color-border:     #1F2B45;
  --color-accent-ink: #0A0F1E;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- Helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--color-accent); margin-bottom: .9rem;
}
.section__title { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.7rem); margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--color-text-muted); max-width: 60ch; }

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: .6rem 1.2rem; border-radius: 0 0 8px 8px; font-weight: 600; z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- Focus-visible ---------- */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: .95rem;
  padding: .85rem 1.7rem; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { transform: translateY(-2px); text-decoration: none; background: #1ee4bd; }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }

.btn--glow { animation: cta-glow 2.6s var(--ease) 1; }
@keyframes cta-glow {
  0%   { box-shadow: 0 0 0 0 rgba(0,212,170,.0); }
  55%  { box-shadow: 0 0 30px 6px rgba(0,212,170,.38); }
  100% { box-shadow: 0 0 0 0 rgba(0,212,170,0); }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,15,30,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 4.2rem; }
.nav__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--color-text); letter-spacing: -.01em; }
.nav__brand strong { color: var(--color-accent); font-weight: 700; }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 1.8rem; align-items: center; list-style: none; }
.nav__links a { color: var(--color-text-muted); font-size: .95rem; font-weight: 500; }
.nav__links a:hover { color: var(--color-accent); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; transition: transform .25s var(--ease), opacity .25s var(--ease); }

@media (max-width: 1024px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 4.2rem 0 auto 0; flex-direction: column; gap: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .nav__links.is-open { max-height: 60vh; }
  .nav__links li { width: 100%; text-align: center; }
  .nav__links a { display: block; padding: 1rem; border-top: 1px solid var(--color-border); }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(540px, 86vh, 820px); display: flex; align-items: center; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: url("../images/hero.webp") center/cover no-repeat; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(10,15,30,.94) 0%, rgba(10,15,30,.74) 44%, rgba(11,61,46,.40) 100%);
  background-size: 160% 160%; animation: hero-shift 16s ease-in-out infinite alternate;
}
@keyframes hero-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero__inner { max-width: 640px; }
.hero__title { font-size: clamp(2.1rem, 1.3rem + 4vw, 3.9rem); margin-bottom: 1.1rem; letter-spacing: -.015em; }
.hero__lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); color: #cfe0dc; max-width: 48ch; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Vision ---------- */
.vision__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .vision__grid { grid-template-columns: 1.1fr 1fr; } }
.vision__body p { color: var(--color-text-muted); margin-bottom: 1rem; }
.vision__body p:last-child { margin-bottom: 0; }
.vision__aside {
  background: var(--color-card-bg); border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.vision__aside h3 { font-size: 1.15rem; color: var(--color-accent); margin-bottom: .6rem; }
.vision__aside p { color: var(--color-text-muted); font-size: .98rem; }

/* ---------- Schwerpunkte (Cards) ---------- */
.cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px)  { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--color-card-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.card__icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1.1rem;
  border-radius: 10px; background: rgba(0,212,170,.10); color: var(--color-accent);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.2rem; margin-bottom: .55rem; }
.card__text { color: var(--color-text-muted); font-size: .96rem; }

/* ---------- Haltung (dunkle Akzent-Sektion) ---------- */
.stance { background: var(--color-primary); }
.stance .eyebrow { color: var(--color-accent); }
.stance__title { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); margin-bottom: 2.4rem; max-width: 24ch; }
.values { display: grid; gap: 1.6rem 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .values { grid-template-columns: 1fr 1fr; } }
.value { display: flex; gap: 1rem; align-items: flex-start; }
.value__num { font-family: var(--font-display); font-weight: 700; color: var(--color-accent); font-size: 1.1rem; line-height: 1.5; min-width: 2.4rem; }
.value h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.value p { color: rgba(232,244,241,.78); font-size: .96rem; }

/* ---------- Kontakt / CTA ---------- */
.contact {
  position: relative; text-align: center; isolation: isolate;
  overflow: hidden;
}
.contact__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../images/contact-bg.webp") center 60% / cover no-repeat;
}
.contact__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(10,15,30,.92) 0%,
    rgba(10,15,30,.82) 50%,
    rgba(11,61,46,.88) 100%
  );
}
.contact .eyebrow { color: var(--color-accent); }
.contact .section__title { margin-bottom: .8rem; }
.contact .lead { margin-inline: auto; margin-bottom: 2rem; color: #cfe0dc; }
.contact__mail {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem);
  font-weight: 500;
}
.contact__mail a {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(0,212,170,.35);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.contact__mail a:hover { border-color: var(--color-accent); text-decoration: none; }

/* ---------- Kontaktformular ---------- */
.contact-form {
  max-width: 36rem; margin: 2rem auto 0; text-align: left;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label {
  font-size: .88rem; font-weight: 500; color: var(--color-text-muted);
  letter-spacing: .02em;
}
.form-field input,
.form-field textarea {
  background: rgba(10,15,30,.7); border: 1px solid var(--color-border);
  border-radius: 8px; padding: .75rem 1rem;
  color: var(--color-text); font-family: var(--font-body); font-size: 1rem;
  width: 100%; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--color-text-muted); opacity: .6; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,212,170,.18);
}
.form-field textarea { min-height: 9rem; }
.form__note {
  font-size: .82rem; color: var(--color-text-muted); text-align: center;
  margin-top: -.4rem;
}
.form__note a { color: var(--color-accent); }
.form__success {
  display: none; text-align: center; padding: 1.2rem;
  background: rgba(0,212,170,.1); border: 1px solid rgba(0,212,170,.3);
  border-radius: 8px; color: var(--color-accent); font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding-block: 2.6rem; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer__brand { font-family: var(--font-display); font-weight: 700; color: var(--color-text); }
.footer__brand strong { color: var(--color-accent); }
.footer__links { display: flex; gap: 1.5rem; list-style: none; }
.footer__links a { color: var(--color-text-muted); font-size: .92rem; }
.footer__bottom { width: 100%; color: var(--color-text-muted); font-size: .82rem; margin-top: .4rem; }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__overlay { animation: none !important; }
  .btn--glow { animation: none !important; }
  .card:hover, .btn--primary:hover { transform: none !important; }
}
