/* Möbelfolierung Hochwald – Stylesheet
   Farben als Tokens, Dark Mode bewusst nicht umgesetzt (klare, helle Linie). */

:root {
  --blue: #829CBD;        /* Taubenblau aus dem Logo */
  --blue-dark: #4E6E94;   /* Akzent für Links und Buttons */
  --blue-soft: #E8EEF5;   /* helle Flächen */
  --ink: #2A2A2A;         /* Fließtext */
  --ink-soft: #5A5F66;    /* Nebentext */
  --bg: #FFFFFF;
  --bg-alt: #F6F8FB;
  --line: #DDE3EA;
  --warn: #8A5A00;
  --radius: 10px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 600; margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; margin: 1.6em 0 .6em; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.3em 0 .4em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section.alt { background: var(--bg-alt); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); font-size: .95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand img { height: 46px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer;
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 2px; font-size: .95rem; }
.nav a[aria-current="page"], .nav a:hover { color: var(--blue-dark); border-bottom: 2px solid var(--blue); }

.view-switch {
  background: var(--blue-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: .85rem; color: var(--blue-dark); cursor: pointer; white-space: nowrap;
}

/* Hero */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--blue-soft), #fff); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-img { border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; width: 100%; }
.region { font-size: .95rem; color: var(--ink-soft); margin-top: 10px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px; text-decoration: none;
  background: var(--blue-dark); color: #fff; border: 2px solid var(--blue-dark);
  font: inherit; font-weight: 600; cursor: pointer; text-align: center;
}
.btn:hover { background: #3c5a7e; border-color: #3c5a7e; }
.btn.ghost { background: transparent; color: var(--blue-dark); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Karten und Raster */
.grid { display: grid; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; height: 100%;
}
.card h3 { margin-top: 0; }
.placeholder {
  background: #FFF8E6; border: 1px dashed #D9B45A; color: var(--warn);
  padding: 2px 6px; border-radius: 4px; font-size: .95em;
}

/* Hinweisbox */
.notice {
  background: var(--blue-soft); border-left: 4px solid var(--blue-dark);
  padding: 14px 18px; border-radius: 6px; margin: 1.2em 0;
}
.notice.warn { background: #FFF8E6; border-left-color: #D9B45A; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none;
  align-items: center; justify-content: center; z-index: 50; padding: 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 8px; }
.lightbox button {
  position: absolute; background: #fff; border: 0; border-radius: 999px;
  width: 44px; height: 44px; font-size: 22px; cursor: pointer;
}
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Formulare */
form .field { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #C5CDD6; border-radius: 8px; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 6px; }
.hint { font-size: .85rem; color: var(--ink-soft); }
.error { color: #A22A2A; font-size: .9rem; }

/* Rechner */
.calc-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.calc-table th, .calc-table td { text-align: left; padding: 6px 4px; vertical-align: middle; }
.calc-table input { padding: 8px 10px; }
.calc-table .qty { width: 80px; }
.calc-table .dim { width: 100px; }
.calc-table .rm { background: none; border: 0; color: #A22A2A; cursor: pointer; font-size: 1.2rem; }
.result { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.result table { width: 100%; border-collapse: collapse; }
.result td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.result td.amount { text-align: right; white-space: nowrap; }
.result tr.total td { font-weight: 700; border-bottom: 0; font-size: 1.1rem; padding-top: 10px; }

/* Fuß */
.site-footer { background: #1F2A36; color: #D6DEE8; padding: 36px 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Ansichtsmodi: Mobil (Standard, responsiv) und PC */
body.view-desktop .wrap { max-width: 1200px; }
body.view-desktop .nav-toggle { display: none; }
body.view-desktop .nav { display: flex; }
body.view-desktop .gallery { grid-template-columns: repeat(3, 1fr); }
body.view-desktop .hero-grid { grid-template-columns: 1.1fr .9fr; }
body.view-desktop .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
body.view-desktop .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Breakpoints */
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Mobil: Navigation einklappbar */
@media (max-width: 719px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; flex-direction: column; width: 100%; padding: 8px 0 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 2px; border-bottom: 1px solid var(--line); }
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .brand img { height: 40px; }
  .calc-table .dim, .calc-table .qty { width: 72px; }
  .calc-table td, .calc-table th { font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
