/* ══════════════════════════════════════════
   Marcus Alleze — Shared Styles
   ══════════════════════════════════════════ */

/* ── Fonts (lokal) ── */
@font-face { font-family: 'Lora'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Lora-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/Lora-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-weight: 400; font-style: italic; font-display: swap; src: url('fonts/Lora-Italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/DMSans-Light.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/DMSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/DMSans-Medium.woff2') format('woff2'); }

/* ── Custom Properties ── */
:root {
  --green-dark:  #40622E;
  --green-soft:  #5E8C61;
  --beige:       #F4EDE4;
  --brown:       #3A2E2A;
  --orange:      #D17A22;
  --yellow:      #E9D985;
  --surface:     #FFFAF3;
  --border:      rgba(58,46,42,.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,.09);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--beige);
  color: var(--brown);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--green-soft); border-radius: 4px; }

/* ── Links ── */
a { color: var(--green-dark); }
a:hover { color: var(--orange); }


/* ══════════════════════════════════════════
   Navigation
   ══════════════════════════════════════════ */

header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px;
  transition: background .4s, box-shadow .4s;
}
header.scrolled {
  background: rgba(244,237,228,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
}
/* Unterseiten: Nav ist immer sichtbar */
header.static {
  position: sticky; top: 0;
  background: rgba(244,237,228,.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
}
nav {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  height: 68px;
}
.nav-logo {
  font-family: 'Lora', serif; font-size: 18px; font-weight: 500;
  color: #fff; text-decoration: none;
  transition: color .3s;
}
header.scrolled .nav-logo,
header.static .nav-logo { color: var(--green-dark); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: 14px; font-weight: 400; letter-spacing: .02em;
  transition: color .3s;
}
.nav-links a:hover { color: #fff; }
header.scrolled .nav-links a,
header.static .nav-links a { color: var(--brown); }
header.scrolled .nav-links a:hover,
header.static .nav-links a:hover { color: var(--green-dark); }

.nav-cta {
  background: var(--orange); color: #fff !important;
  padding: 8px 18px; border-radius: 8px;
  transition: filter .2s, transform .15s !important;
}
.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px) !important; }

.nav-back {
  color: var(--brown); text-decoration: none;
  font-size: 14px; font-weight: 400;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s;
}
.nav-back:hover { color: var(--green-dark); }


/* ══════════════════════════════════════════
   Shared Sections
   ══════════════════════════════════════════ */

.section { padding: 100px 40px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-soft); margin-bottom: 12px;
}
.section-title {
  font-family: 'Lora', serif; font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500; line-height: 1.2; letter-spacing: -.3px;
  color: var(--brown); margin-bottom: 20px;
}
.section-lead {
  font-size: 17px; color: var(--brown); opacity: .7; max-width: 560px; line-height: 1.7;
}


/* ══════════════════════════════════════════
   Fade-in Animation (Progressive Enhancement)
   ══════════════════════════════════════════ */

.fade-up {
  opacity: 1; transform: translateY(0);
}
.fade-ready .fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-ready .fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-ready .fade-up:nth-child(2) { transition-delay: .1s; }
.fade-ready .fade-up:nth-child(3) { transition-delay: .2s; }
.fade-ready .fade-up:nth-child(4) { transition-delay: .3s; }
.fade-ready .fade-up:nth-child(5) { transition-delay: .4s; }
.fade-ready .fade-up:nth-child(6) { transition-delay: .5s; }


/* ══════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════ */

.btn-primary {
  display: inline-block; padding: 14px 28px; border-radius: 10px;
  background: var(--orange); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: filter .2s, transform .15s;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block; padding: 14px 28px; border-radius: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 400;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }


/* ══════════════════════════════════════════
   Hero
   ══════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #40622E 0%, #4d7038 40%, #5a7e48 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: .4;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85);
  margin-bottom: 28px;
}
.hero-label span { width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; display: block; }
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500; line-height: 1.15;
  color: #fff; letter-spacing: -.5px;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--yellow); }
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,.75);
  max-width: 440px; line-height: 1.7; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Cards */
.hero-cards { display: flex; flex-direction: column; gap: 14px; }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); border-radius: 14px; padding: 20px 24px;
  color: #fff;
  transform: translateX(40px); opacity: 0;
  transition: transform .6s ease, opacity .6s ease;
}
.hero-card.visible { transform: translateX(0); opacity: 1; }
.hero-card:nth-child(2) { transition-delay: .12s; }
.hero-card:nth-child(3) { transition-delay: .24s; }
.hero-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hero-card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card-title { font-family: 'Lora', serif; font-size: 16px; font-weight: 500; }
.hero-card-text { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.5; }

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.scroll-hint-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), rgba(255,255,255,0));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4} 50%{opacity:1} }


/* ══════════════════════════════════════════
   Principles (Arbeitsweise)
   ══════════════════════════════════════════ */

.principles {
  background: linear-gradient(160deg, var(--green-dark) 0%, #4d7038 100%);
  position: relative; overflow: hidden;
}
.principles-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
}
.principles-inner { position: relative; z-index: 1; }
.principles .section-title { color: #fff; }
.principles .section-label { color: rgba(255,255,255,.5); }
.principles .section-lead { color: rgba(255,255,255,.65); }

.principles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 56px;
  border-radius: 16px; overflow: hidden;
}
.principle-card {
  background: rgba(255,255,255,.07); border: none;
  padding: 36px 32px; position: relative;
  transition: background .25s;
}
.principle-card:hover { background: rgba(255,255,255,.12); }
.principle-num {
  font-family: 'Lora', serif; font-size: 13px; font-style: italic;
  color: rgba(255,255,255,.3); margin-bottom: 20px;
}
.principle-title {
  font-family: 'Lora', serif; font-size: 20px; font-weight: 500;
  color: #fff; margin-bottom: 12px; line-height: 1.25;
}
.principle-text { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.65; }
.principle-accent {
  position: absolute; top: 36px; right: 32px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); opacity: 0;
  transition: opacity .25s;
}
.principle-card:hover .principle-accent { opacity: 1; }


/* ══════════════════════════════════════════
   Contact
   ══════════════════════════════════════════ */

.contact { background: var(--surface); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
  margin-top: 56px;
}
.contact-left .section-lead { max-width: 380px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 36px;
}
.contact-detail + .contact-detail { margin-top: 20px; }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(64,98,46,.08); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--green-dark);
}
.contact-detail-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--green-soft); margin-bottom: 3px;
}
.contact-detail-val { font-size: 15px; color: var(--brown); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--brown); opacity: .6; letter-spacing: .04em; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--beige); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--brown);
  outline: none; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(94,140,97,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(58,46,42,.3); }

.btn-submit {
  background: var(--green-dark); color: #fff;
  padding: 14px 28px; border-radius: 10px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: filter .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
}
.btn-submit:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-submit svg { transition: transform .2s; }
.btn-submit:hover svg { transform: translateX(3px); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Form Status */
.form-status {
  font-size: 14px; line-height: 1.5;
  min-height: 20px; margin-top: 4px;
}
.form-status--success { color: var(--green-dark); }
.form-status--error { color: #c0392b; }

/* Loading Spinner */
.btn-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Form Overlay */
.form-overlay {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.form-overlay.visible { opacity: 1; }
.form-overlay-content { text-align: center; padding: 32px; }
.form-overlay-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 20px;
}
.form-overlay--success .form-overlay-icon {
  background: rgba(64, 98, 46, .12); color: var(--green-dark);
}
.form-overlay--error .form-overlay-icon {
  background: rgba(192, 57, 43, .12); color: #c0392b;
}
.form-overlay-title {
  font-family: 'Lora', serif; font-size: 22px; font-weight: 500;
  color: var(--brown); margin-bottom: 8px;
}
.form-overlay-text {
  font-size: 15px; color: var(--brown); opacity: .7;
  max-width: 320px; margin: 0 auto 24px; line-height: 1.6;
}
.form-overlay-btn {
  background: var(--green-dark); color: #fff;
  padding: 11px 24px; border-radius: 10px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: filter .2s, transform .15s;
}
.form-overlay-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.form-overlay--error .form-overlay-btn { background: var(--orange); }


/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */

footer {
  background: var(--brown); color: rgba(255,255,255,.6);
  padding: 48px 40px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: 'Lora', serif; font-size: 18px; color: #fff;
  text-decoration: none;
}
.footer-copy { font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: rgba(255,255,255,.5); text-decoration: none; font-size: 13px;
  transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.9); }


/* ══════════════════════════════════════════
   Unterseiten (Datenschutz, Impressum)
   ══════════════════════════════════════════ */

.page-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}
.page-label {
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-soft); margin-bottom: 12px;
}
.page-title {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500; line-height: 1.2; letter-spacing: -.3px;
  color: var(--brown); margin-bottom: 12px;
}
.page-meta {
  font-size: 14px; color: var(--brown); opacity: .5;
  margin-bottom: 56px;
}
.page-content h2 {
  font-family: 'Lora', serif;
  font-size: 22px; font-weight: 500; line-height: 1.3;
  color: var(--green-dark);
  margin: 48px 0 16px;
}
.page-content h2:first-of-type { margin-top: 0; }
.page-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 500;
  color: var(--brown);
  margin: 28px 0 8px;
}
.page-content p {
  font-size: 15px; line-height: 1.75;
  margin-bottom: 14px;
}
.page-content a { color: var(--green-dark); }
.page-content a:hover { color: var(--orange); }


/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-cards { display: none; }
  .principles-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 72px 24px; }
  header { padding: 0 24px; }
  .page-content { padding: 56px 24px 80px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
}
