/* Natursteine Freidhof – Stylesheet
   Schriften: lokale Systemfonts statt Google Fonts (kein externer Request, DSGVO-unkritisch) */
:root {
  --stone: #2c2820;
  --stone-mid: #5a4e3e;
  --stone-light: #9c8c78;
  --sand: #e8dfd0;
  --sand-light: #f5f0e8;
  --cream: #faf7f2;
  --moss: #4a5c3e;
  --rust: #8b4a2a;
  --white: #ffffff;
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--stone);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 6vw; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--stone); }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 400; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* ── HEADER / NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(156,140,120,0.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 90px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img {
  height: 75px;
  width: auto;
  display: block;
}
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--stone-mid); text-decoration: none; transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--stone); border-bottom: 2px solid var(--rust); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--stone); }

/* ── BUTTONS ── */
.btn-primary, .btn-secondary {
  display: inline-block; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 0.85rem 2rem; border-radius: var(--radius); transition: all .2s;
}
.btn-primary { background: var(--stone); color: var(--cream); border: 1.5px solid var(--stone); }
.btn-primary:hover { background: var(--stone-mid); }
.btn-secondary { background: transparent; color: var(--stone); border: 1.5px solid var(--stone); }
.btn-secondary:hover { background: var(--stone); color: var(--cream); }

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem;
  padding: 6rem 6vw 4rem; max-width: 1180px; margin: 0 auto;
}
.hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 1.2rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero-sub { color: var(--stone-mid); max-width: 460px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-image img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── SECTIONS ── */
.section { padding: 4rem 6vw; }
.section-alt { background: var(--sand-light); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1180px; margin: 0 auto; }
.feature { text-align: center; padding: 1.5rem; }

/* ── PRODUCT GRID ── */
.product-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 2.5rem; }
.product-filters a {
  font-size: 0.8rem; padding: 0.45rem 1rem; border: 1px solid var(--stone-light); border-radius: 20px;
  text-decoration: none; color: var(--stone-mid); text-transform: uppercase; letter-spacing: 0.04em;
}
.product-filters a.active, .product-filters a:hover { background: var(--stone); color: var(--cream); border-color: var(--stone); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.8rem; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(44,40,32,0.12); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--sand); }
.product-card-body { padding: 1rem 1.1rem 1.3rem; }
.product-card-body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.product-card-type { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone-light); margin-bottom: 0.5rem; }
.product-card-price { font-weight: 600; color: var(--rust); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--stone-mid); }

/* ── PRODUCT DETAIL ── */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; padding: 3rem 6vw; max-width: 1180px; margin: 0 auto; }
.product-gallery-main { border-radius: var(--radius); overflow: hidden; margin-bottom: 0.8rem; aspect-ratio: 4/3; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.product-gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; }
.product-gallery-thumbs img.active { border-color: var(--rust); }
.product-info-price { font-size: 1.6rem; color: var(--rust); font-weight: 600; margin: 1rem 0; }
.price-label { font-size: 0.65em; font-weight: 400; vertical-align: middle; }
.product-meta-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.product-meta-table tr { border-bottom: 1px solid var(--sand); }
.product-meta-table td { padding: 0.55rem 0; font-size: 0.92rem; }
.product-meta-table td:first-child { color: var(--stone-light); width: 45%; }
.breadcrumb { font-size: 0.8rem; color: var(--stone-light); padding: 1.2rem 6vw 0; max-width: 1180px; margin: 0 auto; }
.breadcrumb a { color: var(--stone-mid); text-decoration: none; }

/* ── ÜBER UNS / TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.team-card { text-align: center; }
.team-card img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; margin-bottom: 0.8rem; }
.team-card .role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stone-light); }

/* ── KONTAKT ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem 6vw; max-width: 1180px; margin: 0 auto; }
.locations-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.location-card { background: var(--white); padding: 1.3rem; border-radius: var(--radius); }
.location-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
form.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
form.contact-form > div { display: flex; flex-direction: column; gap: 0.35rem; }
form.contact-form label { font-size: 0.85rem; font-weight: 600; display: block; }
form.contact-form input, form.contact-form textarea {
  width: 100%; box-sizing: border-box;
  font-family: var(--font-body); font-size: 0.95rem; padding: 0.7rem 0.9rem; border: 1px solid var(--stone-light);
  border-radius: var(--radius); background: var(--white);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.form-success { background: var(--moss); color: var(--cream); padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.form-error { background: var(--rust); color: var(--cream); padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; }

/* ── LEGAL PAGES ── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 3rem 6vw; }
.legal-page h2 { margin-top: 2rem; }

/* ── FOOTER ── */
.site-footer { background: var(--stone); color: var(--sand-light); margin-top: 3rem; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 3.5rem 6vw 2rem; }
.footer-col h3 { color: var(--cream); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.9rem; font-family: var(--font-body); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--stone-light); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.2rem 6vw; font-size: 0.8rem; color: var(--stone-light); }

/* ── ADMIN ── */
.admin-wrap { max-width: 980px; margin: 2rem auto; padding: 0 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); }
.admin-table th, .admin-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--sand); text-align: left; font-size: 0.9rem; }
.admin-table th { background: var(--sand-light); }
.badge { padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.72rem; text-transform: uppercase; }
.badge-active { background: var(--moss); color: var(--cream); }
.badge-inactive { background: var(--stone-light); color: var(--cream); }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; padding: 0.6rem; margin-bottom: 1rem; border: 1px solid var(--stone-light); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem;
}
.admin-form label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 0.3rem; }
.admin-bar { background: var(--stone); color: var(--cream); padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.admin-bar a { color: var(--sand-light); text-decoration: none; margin-left: 1rem; font-size: 0.85rem; }

/* ── BEDARFSRECHNER ── */
.bedarfsrechner {
  background: var(--sand-light);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 1.5rem 0;
}
.bedarfsrechner h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.rechner-toggle { display: flex; margin-bottom: 0.9rem; }
.rechner-toggle button {
  flex: 1; padding: 0.45rem 0.6rem; font-size: 0.82rem; font-weight: 500; font-family: var(--font-body);
  border: 1.5px solid var(--stone-light); background: var(--white); color: var(--stone-mid);
  cursor: pointer; transition: all .15s; line-height: 1.3;
}
.rechner-toggle button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.rechner-toggle button:last-child  { border-radius: 0 var(--radius) var(--radius) 0; border-left: none; }
.rechner-toggle button.active      { background: var(--stone); color: var(--white); border-color: var(--stone); }
.rechner-intro { font-size: 0.87rem; color: var(--stone-mid); margin-bottom: 1rem; }
.rechner-input-row { display: flex; align-items: center; gap: 0.6rem; }
.rechner-input-row input {
  width: 110px; padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--stone-light); border-radius: var(--radius);
  font-size: 1rem; background: var(--white); color: var(--stone);
  outline: none; transition: border-color .2s;
}
.rechner-input-row input:focus { border-color: var(--stone); }
.rechner-unit { font-size: 1rem; color: var(--stone-mid); }
.rechner-result { margin-top: 1.1rem; border-top: 1px solid var(--sand); padding-top: 0.9rem; }
.rechner-result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.35rem 0; border-bottom: 1px solid rgba(232,223,208,0.6);
}
.rechner-label { font-size: 0.87rem; color: var(--stone-light); }
.rechner-value { font-size: 1rem; font-weight: 600; }
.rechner-price { color: var(--rust); }
.rechner-hinweis { font-size: 0.78rem; color: var(--stone-light); margin-top: 0.7rem; margin-bottom: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero, .product-detail, .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--cream); padding: 1rem 6vw; border-bottom: 1px solid var(--sand); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ── SB7 HOMEPAGE SECTIONS ── */

/* 1. Stakes */
.stakes-section { background: var(--stone); color: var(--cream); }
.stakes-section .container { max-width: 1180px; margin: 0 auto; padding: 3rem 6vw; }
.stakes-intro { text-align: center; font-size: 1.05rem; margin-bottom: 2rem; color: var(--sand); }
.stakes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stake-item { display: flex; align-items: flex-start; gap: 1rem; background: rgba(255,255,255,0.05); padding: 1.2rem 1.4rem; border-radius: var(--radius); border-left: 3px solid var(--rust); }
.stake-icon { font-size: 1.1rem; color: var(--rust); flex-shrink: 0; font-weight: 700; margin-top: 0.1rem; }
.stake-item p { color: var(--sand); font-size: 0.95rem; margin: 0; }

/* 2. Value grid */
.value-section .container { max-width: 1180px; margin: 0 auto; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.value-card { text-align: center; padding: 2rem 1.5rem; background: var(--white); border-radius: var(--radius); }
.value-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.value-card p { font-size: 0.9rem; color: var(--stone-mid); margin: 0; }

/* 3. Authority */
.authority-section { background: var(--sand-light); }
.authority-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; max-width: 1180px; margin: 0 auto; padding: 5rem 6vw; }
.authority-text h2 { margin-bottom: 1rem; }
.authority-empathy { font-size: 1.0rem; color: var(--stone-mid); font-style: italic; margin-bottom: 1.5rem; border-left: 3px solid var(--sand); padding-left: 1rem; }
.authority-quote { border-left: 3px solid var(--rust); padding-left: 1.2rem; margin: 0; font-size: 0.95rem; }
.authority-quote cite { display: block; font-size: 0.8rem; color: var(--stone-light); margin-top: 0.4rem; font-style: normal; }
.authority-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-item { text-align: center; padding: 1.5rem 1rem; background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(44,40,32,0.06); }
.stat-number { display: block; font-size: 1.7rem; font-weight: 700; color: var(--stone); font-family: var(--font-display); line-height: 1; }
.stat-label { display: block; font-size: 0.75rem; color: var(--stone-light); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.4rem; }

/* 4. Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1180px; margin: 0 auto; }
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(44,40,32,0.08); transition: transform .15s, box-shadow .15s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(44,40,32,0.14); }
.service-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--sand); }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.service-card-body p { font-size: 0.9rem; color: var(--stone-mid); margin-bottom: 1rem; }

/* 5. Plan steps */
.plan-section { background: var(--cream); }
.plan-steps { display: flex; align-items: flex-start; gap: 0; max-width: 900px; margin: 0 auto; }
.plan-step { flex: 1; text-align: center; padding: 0 1.5rem; }
.plan-number { width: 3rem; height: 3rem; background: var(--stone); color: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; font-family: var(--font-display); margin: 0 auto 1rem; }
.plan-step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.plan-step p { font-size: 0.9rem; color: var(--stone-mid); margin: 0; }
.plan-connector { flex: 0 0 3rem; height: 2px; background: var(--sand); margin-top: 1.4rem; }

/* 6. Success gallery */
.success-section .section-header { margin-bottom: 1.5rem; }
.success-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1180px; margin: 0 auto 2rem; }
.success-img { overflow: hidden; border-radius: var(--radius); }
.success-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.success-img:hover img { transform: scale(1.03); }
.success-quote { text-align: center; font-size: 1.05rem; font-style: italic; max-width: 600px; margin: 0 auto 2rem; color: var(--stone-mid); }
.success-quote cite { display: block; font-size: 0.82rem; color: var(--stone-light); margin-top: 0.5rem; font-style: normal; }

/* SB7 responsive */
@media (max-width: 960px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .stakes-grid, .services-grid, .success-gallery { grid-template-columns: 1fr; }
  .authority-inner { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 6vw; }
  .plan-steps { flex-direction: column; align-items: center; }
  .plan-connector { width: 2px; height: 2rem; flex: 0 0 2rem; margin-top: 0; }
  .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .value-grid { grid-template-columns: 1fr; }
  .authority-stats { grid-template-columns: 1fr 1fr; }
}
