/* ================================================================
   FORSTHOF INSELSBERG – Ofenfertiges Brennholz
   Shared Stylesheet v1.0
   ================================================================ */

/* ===== VARIABLES ===== */
:root {
  --forest: #4a7729;
  --forest-dark: #3a6020;
  --forest-deeper: #006400;
  --forest-hover: #228b22;
  --forest-light: #def1df;
  --forest-bg: #f0f7ec;
  --white: #ffffff;
  --offwhite: #fdfdfb;
  --sand: #f5f5f0;
  --sand-dark: #e8e8e0;
  --text-dark: #2a2a2a;
  --text-body: #333333;
  --text-light: #555555;
  --text-muted: #888888;
  --link: #004400;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --section-padding: 80px 0;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body { font-family:var(--font-body); color:var(--text-body); background:var(--offwhite); line-height:1.8; -webkit-font-smoothing:antialiased; }
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:var(--link); }
a:hover { color:var(--forest); }
.container { max-width:var(--max-width); margin:0 auto; padding:0 28px; }
h1,h2,h3,h4 { font-family:var(--font-heading); font-weight:400; line-height:1.3; color:var(--text-dark); }

/* ===== COMMON ELEMENTS ===== */
.section-label {
  font-family:var(--font-body); font-size:.75rem; font-weight:700;
  letter-spacing:3.5px; text-transform:uppercase; color:var(--forest); margin-bottom:14px;
}
.section-title {
  font-size:clamp(1.8rem,3.8vw,2.6rem); color:var(--text-dark); margin-bottom:18px; font-weight:400;
}
.section-subtitle {
  font-size:1.05rem; color:var(--text-body); max-width:640px; line-height:1.85; font-weight:400;
}
.section-subtitle.centered { margin:0 auto; }
.section-header { margin-bottom:48px; }
.section-header.centered { text-align:center; }

/* ===== BUTTONS ===== */
.btn {
  display:inline-block; padding:14px 36px;
  font-family:var(--font-body); font-size:.8rem; font-weight:600;
  letter-spacing:2px; text-transform:uppercase; border:none; cursor:pointer;
  transition:all var(--transition); border-radius:2px;
}
.btn-primary { background:var(--forest); color:var(--white); }
.btn-primary:hover { background:var(--forest-dark); transform:translateY(-2px); box-shadow:0 8px 24px rgba(74,119,41,.25); }
.btn-outline-white { background:transparent; color:var(--white); border:1.5px solid rgba(255,255,255,.7); }
.btn-outline-white:hover { background:var(--white); color:var(--forest); border-color:var(--white); }
.btn-outline-dark { background:transparent; color:var(--forest); border:1.5px solid var(--forest); }
.btn-outline-dark:hover { background:var(--forest); color:var(--white); }
.btn-secondary { background:var(--sand); color:var(--forest); border:1.5px solid var(--sand-dark); }
.btn-secondary:hover { background:var(--forest-light); border-color:var(--forest); }

/* ===== TOP BAR ===== */
.top-bar {
  background:var(--forest); color:var(--white); text-align:center;
  padding:10px 20px; font-size:.9rem; position:relative; z-index:1001;
}
.top-bar a { color:var(--white); font-weight:600; }
.top-bar a:hover { text-decoration:underline; }
.top-bar-inner {
  display:flex; justify-content:center; align-items:center; gap:24px; flex-wrap:wrap;
}
.top-bar-item { display:flex; align-items:center; gap:6px; }

/* ===== HEADER ===== */
.header {
  position:sticky; top:0; left:0; width:100%; z-index:1000;
  background:var(--white); padding:14px 0;
  box-shadow:0 1px 20px rgba(0,0,0,.06); transition:all .4s ease;
}
.header-inner { display:flex; justify-content:space-between; align-items:center; }
.logo { display:flex; align-items:center; gap:12px; }
img.logo-icon {
  width:42px; height:42px; border-radius:50%; object-fit:cover;
  border:1.5px solid var(--forest); flex-shrink:0;
}
.logo-text { font-family:var(--font-heading); font-size:1.25rem; font-weight:400; color:var(--text-dark); letter-spacing:.5px; }
.logo-sub {
  display:block; font-family:var(--font-body); font-size:.6rem; font-weight:600;
  letter-spacing:2.5px; text-transform:uppercase; color:var(--text-muted); margin-top:1px;
}

.nav { display:flex; align-items:center; gap:28px; }
.nav a {
  color:var(--text-body); font-size:.82rem; font-weight:600; letter-spacing:.3px;
  position:relative; padding:4px 0; transition:color var(--transition);
}
.nav a::after {
  content:''; position:absolute; bottom:-2px; left:0; width:0; height:2px;
  background:var(--forest); transition:width .3s ease;
}
.nav a:hover { color:var(--forest); }
.nav a:hover::after { width:100%; }
.nav a.active { color:var(--forest); }
.nav a.active::after { width:100%; }
.nav .btn-nav {
  padding:9px 22px; font-size:.75rem; letter-spacing:1.5px;
  border:1.5px solid var(--forest); color:var(--forest); background:transparent;
  transition:all var(--transition); border-radius:2px;
}
.nav .btn-nav:hover { background:var(--forest); color:var(--white); }
.nav .btn-nav::after { display:none; }

.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:8px; }
.hamburger span { width:22px; height:2px; background:var(--text-dark); transition:all .3s ease; }

.mobile-nav {
  display:none; position:fixed; top:0; left:0; width:100%; height:100vh;
  background:rgba(255,255,255,.98); z-index:999;
  flex-direction:column; align-items:center; justify-content:center; gap:28px;
}
.mobile-nav.open { display:flex; }
.mobile-nav a { font-family:var(--font-heading); font-size:1.8rem; color:var(--text-dark); }
.mobile-nav a:hover { color:var(--forest); }
.mobile-nav-close {
  position:absolute; top:24px; right:28px; font-size:1.5rem; cursor:pointer;
  color:var(--text-dark); background:none; border:none;
}

/* ===== PAGE HERO (Unterseiten) ===== */
.page-hero {
  padding:60px 0 50px; background:var(--sand); text-align:center;
}
.page-hero h1 {
  font-size:clamp(2rem,4.5vw,3rem); color:var(--text-dark); margin-bottom:14px;
}
.page-hero .hero-sub {
  font-family:var(--font-heading); font-size:1.1rem; font-style:italic;
  color:var(--text-light); max-width:560px; margin:0 auto;
}

/* ===== HERO (Startseite) ===== */
.hero {
  position:relative; min-height:70vh; display:flex; align-items:center; justify-content:center;
  background-size:cover; background-position:center; color:var(--white); text-align:center;
}
.hero-overlay {
  position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.3) 100%);
}
.hero-content { position:relative; z-index:1; padding:40px 28px; max-width:800px; }
.hero-content h1 {
  font-size:clamp(2.4rem,5vw,3.8rem); color:var(--white); margin-bottom:16px;
  text-shadow:0 2px 12px rgba(0,0,0,.3);
}
.hero-tagline {
  font-family:var(--font-heading); font-size:clamp(1.1rem,2vw,1.4rem);
  font-style:italic; color:rgba(255,255,255,.9); margin-bottom:32px;
}
.hero-buttons { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background:var(--forest-light); border-left:3px solid var(--forest);
  padding:20px 24px; margin:24px 0; font-size:.95rem; color:var(--text-body); line-height:1.75;
}

/* ===== CARDS ===== */
.card-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:28px; }
.card {
  background:var(--white); border:1px solid var(--sand-dark); border-radius:4px;
  overflow:hidden; transition:transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,.08); }
.card-img { height:200px; background-size:cover; background-position:center; }
.card-body { padding:24px; }
.card-body h3 { font-size:1.2rem; margin-bottom:10px; }
.card-body p { font-size:.9rem; color:var(--text-light); margin-bottom:16px; }

/* ===== CONTENT SECTIONS ===== */
.content-section { padding:var(--section-padding); }
.content-section:nth-child(even) { background:var(--sand); }

.text-image-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.text-image-grid.reverse { direction:rtl; }
.text-image-grid.reverse > * { direction:ltr; }

/* ===== DATA TABLE ===== */
.data-table { width:100%; border-collapse:collapse; margin:24px 0; }
.data-table th {
  background:var(--forest); color:var(--white); padding:12px 16px;
  text-align:left; font-size:.85rem; font-weight:600; letter-spacing:.5px;
}
.data-table td { padding:12px 16px; border-bottom:1px solid var(--sand-dark); font-size:.9rem; }
.data-table tr:hover { background:var(--forest-light); }

/* ===== PROCESS STEPS ===== */
.process-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:32px; }
.process-step { text-align:center; padding:24px; }
.process-number {
  width:48px; height:48px; background:var(--forest); color:var(--white);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; font-weight:700; margin:0 auto 16px;
}
.process-step h3 { font-size:1.05rem; margin-bottom:8px; }
.process-step p { font-size:.9rem; color:var(--text-light); }

/* ===== CONTACT SECTION ===== */
.contact { padding:80px 0 100px; background:var(--white); border-top:1px solid var(--sand); }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.contact-info h2 { font-size:clamp(1.6rem,3vw,2.2rem); color:var(--text-dark); margin-bottom:18px; }
.contact-info > p { font-size:1rem; color:var(--text-light); margin-bottom:32px; line-height:1.85; }
.contact-detail { display:flex; align-items:center; gap:14px; margin-bottom:18px; font-size:.95rem; }
.contact-icon {
  width:40px; height:40px; background:var(--forest-light); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:.95rem; flex-shrink:0;
}
.contact-detail a { color:var(--forest); font-weight:500; transition:color .3s ease; }
.contact-detail a:hover { color:var(--forest-dark); }

.contact-form { background:var(--sand); padding:40px; border:1px solid var(--sand-dark); border-radius:4px; }
.contact-form h3 { font-size:1.3rem; color:var(--text-dark); margin-bottom:24px; }
.form-group { margin-bottom:18px; }
.form-group label {
  display:block; font-size:.75rem; font-weight:600; letter-spacing:1px;
  text-transform:uppercase; color:var(--text-body); margin-bottom:6px;
}
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:13px 16px; font-family:var(--font-body); font-size:.95rem;
  border:1px solid var(--sand-dark); background:var(--white); color:var(--text-dark);
  transition:border-color .3s ease; border-radius:2px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline:none; border-color:var(--forest);
}
.form-group textarea { height:110px; resize:vertical; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-hint { font-size:.8rem; color:var(--text-muted); margin-top:4px; }

/* Radio/Checkbox groups */
.radio-group, .checkbox-group { display:flex; flex-wrap:wrap; gap:12px; margin-top:6px; }
.radio-group label, .checkbox-group label {
  display:flex; align-items:center; gap:6px; font-size:.9rem; font-weight:400;
  letter-spacing:0; text-transform:none; cursor:pointer;
}
.radio-group input, .checkbox-group input { width:auto; padding:0; }

/* DSGVO checkbox */
.dsgvo-check { margin:24px 0 18px; }
.dsgvo-check label { font-size:.85rem; line-height:1.5; font-weight:400; text-transform:none; letter-spacing:0; }
.dsgvo-check a { color:var(--forest); text-decoration:underline; }

/* Form status messages */
.form-success {
  display:none; background:var(--forest-light); border:1px solid var(--forest);
  border-radius:4px; padding:24px; text-align:center;
}
.form-success h3 { color:var(--forest); margin-bottom:8px; font-size:1.2rem; }
.form-error {
  display:none; background:#fde8e8; border:1px solid #e53e3e;
  border-radius:4px; padding:16px; text-align:center; color:#c53030; margin-top:12px;
}

/* ===== CTA BANNER ===== */
.cta-banner { padding:60px 0; background:var(--forest-light); text-align:center; }
.cta-banner p {
  font-family:var(--font-heading); font-size:1.3rem; font-style:italic;
  color:var(--text-dark); margin-bottom:24px; font-weight:400;
}

/* ===== FOOTER ===== */
.footer { background:var(--text-dark); color:var(--white); padding:56px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:44px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.08); }
.footer-brand .footer-logo { font-family:var(--font-heading); font-size:1.3rem; font-weight:400; margin-bottom:4px; }
.footer-brand .footer-logo-sub { font-size:.6rem; letter-spacing:2px; text-transform:uppercase; opacity:.7; margin-bottom:16px; }
.footer-brand p { font-size:.85rem; opacity:.65; line-height:1.7; }
.footer h4 {
  font-size:.72rem; font-family:var(--font-body); font-weight:600;
  letter-spacing:2px; text-transform:uppercase; color:var(--forest-light); margin-bottom:18px;
}
.footer-links a { display:block; font-size:.85rem; color:rgba(255,255,255,.65); padding:3px 0; transition:color .3s ease; }
.footer-links a:hover { color:var(--white); }
.footer-contact p { font-size:.85rem; color:rgba(255,255,255,.65); line-height:1.7; }
.footer-contact a { color:var(--forest-light); }
.footer-contact a:hover { color:var(--white); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding:22px 0; font-size:.75rem; color:rgba(255,255,255,.45); }
.footer-legal a { color:rgba(255,255,255,.45); margin-left:18px; transition:color .3s ease; }
.footer-legal a:hover { color:var(--white); }

/* ===== GOOGLE MAPS ===== */
.map-embed { width:100%; height:400px; border:1px solid var(--sand-dark); border-radius:4px; overflow:hidden; }
.map-embed iframe { width:100%; height:100%; border:0; }

/* ===== LEGAL PAGES ===== */
.legal-content { padding:60px 0; max-width:800px; margin:0 auto; }
.legal-content h2 { font-size:1.4rem; margin:32px 0 12px; }
.legal-content h3 { font-size:1.1rem; margin:24px 0 8px; }
.legal-content p, .legal-content li { font-size:.9rem; line-height:1.8; }
.legal-content ul { padding-left:20px; margin-bottom:16px; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity:0; transform:translateY(20px); transition:opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  .footer-grid { grid-template-columns:1fr 1fr; }
  .card-grid { grid-template-columns:repeat(2, 1fr); }
  .text-image-grid { gap:32px; }
}
@media(max-width:768px) {
  :root { --section-padding:48px 0; }
  .nav { display:none; }
  .hamburger { display:flex; }
  .contact-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { flex-direction:column; gap:8px; text-align:center; }
  .page-hero { padding:40px 0 30px; }
  .card-grid { grid-template-columns:1fr; }
  .text-image-grid { grid-template-columns:1fr; }
  .text-image-grid.reverse { direction:ltr; }
  .process-grid { grid-template-columns:1fr; }
  .hero { min-height:50vh; }
  .hero-content h1 { font-size:clamp(1.8rem,6vw,2.6rem); }
  .top-bar { font-size:.8rem; padding:8px 16px; }
  .top-bar-inner { gap:12px; }
}
