/* =====================================================
   Kley Schreinerei — css/style.css
   ===================================================== */

/* ---- @font-face ---- */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/spectral-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/josefin-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/josefin-sans-600.woff2') format('woff2');
}

/* ---- CSS-Variablen ---- */
:root {
  --braun:        #5C3A20;
  --gold:         #A0743A;
  --braun-dunkel: #3D2010;
  --creme:        #FAF6EF;
  --creme2:       #F2ECE4;
  --text:         #2E1A0E;
  --text-mid:     #5C4030;
  --radius:       4px;
  --max:          1160px;
  --font-display: 'Spectral', Georgia, serif;
  --font-body:    'Josefin Sans', system-ui, sans-serif;
}

/* ---- Reset & Basis ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

/* ---- Holzmaserung ---- */
.wood-grain {
  position: relative;
  overflow: hidden;
}
.wood-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    92deg,
    transparent 0px,
    transparent 3px,
    rgba(92,58,32,0.4) 3px,
    rgba(92,58,32,0.4) 4px,
    transparent 4px,
    transparent 18px
  );
  z-index: 0;
}
.wood-grain > * { position: relative; z-index: 1; }

/* ---- Demo-Bar ---- */
.demo-bar {
  background: #1a1a1a;
  color: #f0f0f0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.demo-bar strong { color: #f5c842; }

/* ---- Container ---- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Eyebrow ---- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---- Mark ---- */
mark {
  background: none;
  color: var(--gold);
}

/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--braun);
  box-shadow: 0 2px 12px rgba(61,32,16,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #FAF6EF;
  line-height: 1;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(250,246,239,0.65);
  text-transform: uppercase;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250,246,239,0.82);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.18s, background 0.18s;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: #FAF6EF;
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  margin-left: 12px;
}

/* Burger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FAF6EF;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.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);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--solid {
  background: var(--gold);
  color: #FAF6EF;
  border-color: var(--gold);
}
.btn--solid:hover { background: #8a6230; border-color: #8a6230; color: #FAF6EF; }

.btn--ghost {
  background: transparent;
  color: #FAF6EF;
  border-color: rgba(250,246,239,0.45);
}
.btn--ghost:hover {
  background: rgba(250,246,239,0.1);
  border-color: rgba(250,246,239,0.7);
  color: #FAF6EF;
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline-gold:hover { background: var(--gold); color: #FAF6EF; }

.btn--tel {
  background: rgba(255,255,255,0.12);
  color: #FAF6EF;
  border-color: rgba(255,255,255,0.25);
  font-size: 0.82rem;
  padding: 8px 16px;
}
.btn--tel:hover { background: rgba(255,255,255,0.2); color: #FAF6EF; }

/* =====================================================
   REVEAL-ANIMATIONEN
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background: var(--braun);
  padding: 88px 0 72px;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
}
.hero-content { max-width: 580px; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #FAF6EF;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(250,246,239,0.82);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.18;
}
.hero-emblem svg {
  width: 300px;
  height: 300px;
}

/* =====================================================
   WELLENTEILER
   ===================================================== */
.wave-divider {
  display: block;
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
  padding: 80px 0;
  background: var(--creme);
}
.section--creme2 {
  background: var(--creme2);
}
.section--dunkel {
  background: var(--braun);
  color: #FAF6EF;
}
.section--dunkel h2,
.section--dunkel h3,
.section--dunkel p { color: #FAF6EF; }
.section--dunkel .eyebrow { color: var(--gold); }

.section--dark2 {
  background: var(--braun-dunkel);
  color: #FAF6EF;
}
.section--dark2 h2,
.section--dark2 h3,
.section--dark2 p { color: #FAF6EF; }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.02rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
}
.section--dunkel .section-header p,
.section--dark2 .section-header p {
  color: rgba(250,246,239,0.75);
}

/* =====================================================
   HIGHLIGHTS GRID
   ===================================================== */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.highlight-card {
  background: #FAF6EF;
  border: 1px solid rgba(92,58,32,0.12);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.highlight-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--creme2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.highlight-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.highlight-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* =====================================================
   STORY / 2-SPALTEN-LAYOUT
   ===================================================== */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story--reverse { }
.story--reverse .story-visual { order: 2; }
.story--reverse .story-text  { order: 1; }

.story-text h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 16px;
}
.story-text p {
  font-size: 0.97rem;
  color: var(--text-mid);
  margin-bottom: 14px;
  line-height: 1.75;
}
.story-text ul {
  list-style: none;
  margin-top: 8px;
}
.story-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(92,58,32,0.08);
}
.story-text ul li:last-child { border-bottom: none; }
.story-text ul li svg { flex-shrink: 0; margin-top: 3px; }

.story-visual {
  background: var(--creme2);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(92,58,32,0.1);
}
.story-visual svg {
  width: 70%;
  height: 70%;
  opacity: 0.55;
}

/* =====================================================
   LEISTUNGS-KARTEN (section 5 weiteres)
   ===================================================== */
.leistung-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.leistung-card {
  background: var(--creme);
  border: 1px solid rgba(92,58,32,0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.leistung-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leistung-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.leistung-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* =====================================================
   REFERENZEN-GALERIE
   ===================================================== */
.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.galerie-karte {
  background: var(--creme2);
  border: 1px solid rgba(92,58,32,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.galerie-karte:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(61,32,16,0.12);
}
.galerie-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.galerie-info {
  padding: 16px 18px;
}
.galerie-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.galerie-info p {
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* =====================================================
   CTA-BAND
   ===================================================== */
.cta-band {
  background: var(--braun-dunkel);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: #FAF6EF;
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 1rem;
  color: rgba(250,246,239,0.75);
  margin-bottom: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-phone {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--gold);
  margin: 20px 0 28px;
  letter-spacing: 0.03em;
}
.cta-phone a { color: inherit; text-decoration: none; }
.cta-phone a:hover { text-decoration: underline; }
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   TEASER-WERKSTÜCKE (index)
   ===================================================== */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.teaser-item {
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250,246,239,0.75);
  border: 1px solid rgba(160,116,58,0.2);
}
.teaser-item:nth-child(odd)  { background: rgba(160,116,58,0.08); }
.teaser-item:nth-child(even) { background: rgba(92,58,32,0.2); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--braun-dunkel);
  color: rgba(250,246,239,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo-name { color: #FAF6EF; font-size: 1rem; }
.footer-brand .logo-sub  { color: rgba(250,246,239,0.5); }
.footer-brand p {
  font-size: 0.88rem;
  margin-top: 14px;
  line-height: 1.65;
  color: rgba(250,246,239,0.6);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(250,246,239,0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: #FAF6EF; }
.footer-col p {
  font-size: 0.9rem;
  color: rgba(250,246,239,0.65);
  line-height: 1.65;
}

.footer-bottom {
  border-top: 1px solid rgba(250,246,239,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(250,246,239,0.45);
}
.footer-bottom a {
  color: rgba(250,246,239,0.5);
  text-decoration: none;
}
.footer-bottom a:hover { color: rgba(250,246,239,0.8); }
.footer-links { display: flex; gap: 20px; }

/* =====================================================
   PAGE-HERO (Unterseiten)
   ===================================================== */
.page-hero {
  background: var(--braun);
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0.4;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #FAF6EF;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.02rem;
  color: rgba(250,246,239,0.75);
  max-width: 520px;
}

/* =====================================================
   PROSE (Impressum / Datenschutz)
   ===================================================== */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px;
}
.prose h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 32px;
  color: var(--braun);
}
.prose h2 {
  font-size: 1.25rem;
  margin: 40px 0 14px;
  color: var(--braun);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(92,58,32,0.12);
}
.prose p {
  margin-bottom: 14px;
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.78;
}
.prose ul {
  list-style: disc;
  margin: 0 0 16px 22px;
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* =====================================================
   NOTICE BOX (Demo-Hinweis, Impressum/Datenschutz)
   ===================================================== */
.notice-box {
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 36px;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.65;
}
.notice-box strong { color: var(--braun); }

/* =====================================================
   KONTAKT
   ===================================================== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.kontakt-info h2 {
  font-size: 1.5rem;
  margin-bottom: 28px;
}
.kontakt-list {
  list-style: none;
}
.kontakt-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(92,58,32,0.1);
}
.kontakt-list li:last-child { border-bottom: none; }
.kontakt-list-icon {
  width: 40px;
  height: 40px;
  background: var(--creme2);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kontakt-list-text strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.kontakt-list-text span,
.kontakt-list-text a {
  font-size: 0.97rem;
  color: var(--text-mid);
}
.kontakt-list-text a:hover { color: var(--braun); }

.kontakt-hinweis {
  background: var(--creme2);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--text-mid);
  border-left: 3px solid var(--gold);
}

/* Map */
.map-placeholder {
  background: var(--creme2);
  border: 1px solid rgba(92,58,32,0.12);
  border-radius: var(--radius);
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
.map-placeholder svg {
  opacity: 0.5;
}
.map-placeholder p {
  font-size: 0.9rem;
  color: var(--text-mid);
}
.map-placeholder a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ab 900px: einige Layouts einspaltiger */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-emblem { display: none; }

  .highlights {
    grid-template-columns: 1fr 1fr;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .story--reverse .story-visual { order: 0; }
  .story--reverse .story-text  { order: 0; }

  .leistung-cards {
    grid-template-columns: 1fr 1fr;
  }

  .galerie {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kontakt-grid {
    grid-template-columns: 1fr;
  }

  .teaser-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ab 680px: einspaltig, Burger-Nav */
@media (max-width: 680px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--braun-dunkel);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 99;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 12px 14px;
    font-size: 0.9rem;
    border-radius: var(--radius);
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .leistung-cards {
    grid-template-columns: 1fr;
  }

  .galerie {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ab 480px */
@media (max-width: 480px) {
  .galerie {
    grid-template-columns: 1fr;
  }

  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 56px 0; }

  .hero-actions { flex-direction: column; }
  .cta-actions  { flex-direction: column; align-items: center; }

  .teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
