
/*! LUMARE / Lumar Living  */

:root{
  --color-bg:#F7F3EE;
  --color-surface:#FFFCF7;
  --color-text:#1F2937;
  --color-muted:#6B7280;
  --color-primary:#0F172A;
  --color-accent:#C9A574;
  --color-border:#E5E7EB;
  --radius:16px;
  --radius-lg:24px;
  --shadow:0 8px 30px rgba(15,23,42,.06);
  --max-w:1200px;

  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--color-bg);
  color:var(--color-text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.container{width:100%; max-width:var(--max-w); margin:0 auto; padding:0 16px}
.section{padding:56px 0}
.section-sm{padding:32px 0}

h1,h2,h3{line-height:1.2; margin:0 0 .5em}
h1{font-size:clamp(74px, 5vw, 44px)}
h2{font-size:clamp(22px, 3.8vw, 32px)}
h3{font-size:clamp(18px, 3.2vw, 24px)}
p{margin:0 0 1em; color:var(--color-text)}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
figure{margin:0}

.badge{display:inline-block; font-size:12px; padding:6px 10px; border-radius:999px; background:#fff; border:1px solid var(--color-border)}
.card{
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card-content{padding:16px}
.grid{display:grid; gap:16px}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1024px){ .grid-3{grid-template-columns:repeat(2,1fr)} .grid-4{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .grid-3,.grid-4{grid-template-columns:1fr} }

.button{
  appearance:none;
  border:none;
  padding:12px 16px;
  border-radius:12px;
  background:#ece5db;
  color: currentColor;
  font-weight:600;
  letter-spacing:.2px;
  cursor:pointer;
  transition:.2s transform ease,.2s opacity ease;
}
.button:hover{transform:translateY(-1px)}
.button.secondary{background:#e5d8cc; color:var(--color-primary)}
.button.light{background:#fff; color:var(--color-primary); border:1px solid var(--color-border)}
.button.block{width:100%}

.input, select, textarea{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--color-border);
  background:#fff;
  font:inherit;
}
label{font-size:14px; color:var(--color-muted); display:block; margin:8px 0 6px}
.form-row{display:grid; gap:12px; grid-template-columns:repeat(3,1fr)}
@media (max-width:768px){ .form-row{grid-template-columns:1fr} }

/* Header / Nav */
.topbar{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.6); backdrop-filter:blur(8px); border-bottom:1px solid var(--color-border)}
.nav{display:flex; align-items:center; justify-content:space-between; height:64px}
.brand{display:flex; gap:10px; align-items:center; font-weight:800; letter-spacing:.6px}
.brand img{width:28px; height:28px}
.nav ul{list-style:none; display:flex; gap:20px; margin:0; padding:0}
.nav a{color:var(--color-muted); font-weight:600}
.nav a:hover{color:var(--color-text)}


/* Header-Grundlayout (falls noch nicht vorhanden) */
header.topbar .container.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative; /* damit das Dropdown absolut dran hängt */
}

/* Burger: Desktop ausblenden */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;       /* schiebt den Burger ganz nach rechts */
}
.burger span {
  height: 3px;
  width: 100%;
  background: #111827;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Desktop-Navi */
header.topbar .container.nav > ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* Mobile: unter 670px */
@media (max-width: 670px) {
  .burger { display: flex; }

  /* Menü ist mobil standardmäßig versteckt */
  header.topbar .container.nav > ul {
    display: none !important;             /* bricht evtl. framework-regeln */
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    flex-direction: column;
    margin: 0; padding: 0;
    z-index: 1000;
  }
  header.topbar .container.nav > ul.open {
    display: flex !important;
  }
  header.topbar .container.nav > ul li {
    border-top: 1px solid #eee;
  }
  header.topbar .container.nav > ul a {
    display: block;
    padding: 14px 20px;
    color: #111827;
    text-decoration: none;
  }
}

/* Optional: hübsches X beim Öffnen – funktioniert mit dem JS oben */
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* Hero Slider */
.hero{position:relative; overflow:hidden; border-bottom:1px solid var(--color-border)}
.slider{position:relative; height:min(72vh,720px)}
.slides{display:flex; height:100%; transition:transform .6s ease}
.slide{min-width:100%; position:relative}
.slide figure{height:100%}
.slide img{width:100%; height:100%; object-fit:cover; filter:contrast(1.02) saturate(1.02)}
.hero-overlay{
  position:absolute; 
  inset:0; 
  display:flex; 
  align-items:flex-start; 
  /*background:linear-gradient(90deg, rgba(15,23,42,.55), rgba(0,0,0,.15) 60%, rgba(0,0,0,0)); */
  /*color:#fff; */
}
.hero-content{padding:24px; max-width:1100px}
.hero-content h1{font-weight:800}
.hero-content p{opacity:.9; font-size:18px}
.slider-nav{position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; padding:0 8px; pointer-events:none}
.slider-nav button{pointer-events:auto; width:42px; height:42px; border-radius:999px; background:rgba(255,255,255,.9); border:1px solid var(--color-border)}
.slider-dots{position:absolute; left:50%; bottom:12px; transform:translateX(-50%); display:flex; gap:8px}
.slider-dots button{width:10px; height:10px; border-radius:999px; background:#fff; opacity:.6; border:1px solid var(--color-border)}
.slider-dots button.active{opacity:1; background:var(--color-accent)}

/* Offer Carousel */
.carousel{position:relative}
.carousel-track{display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:6px}
.carousel .card{scroll-snap-align:start; min-width:280px; flex:0 0 280px}
.carousel button.prev,.carousel button.next{
  position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px; border-radius:999px; background:#fff; border:1px solid var(--color-border)
}
.carousel button.prev{left:-8px} .carousel button.next{right:-8px}

/* Feature blocks */
.block{display:grid; gap:16px; grid-template-columns:2fr}
@media (max-width:1024px){ .block{grid-template-columns:1fr} }
.block .box{padding:20px; border-radius:var(--radius); background:#fff; border:1px solid var(--color-border)}

/* Lists */
.list{display:grid; gap:12px}
.list .row{display:flex; justify-content:space-between; gap:12px; border-bottom:1px dashed var(--color-border); padding:6px 0}
.kpis{display:flex; gap:12px; flex-wrap:wrap}
.kpi{padding:10px 12px; border:1px solid var(--color-border); border-radius:12px; background:#fff}

/* Footer */
footer{margin-top:56px; border-top:1px solid var(--color-border); background:#fff; padding: 1em;}
.footer-top{display:grid; gap:16px; grid-template-columns:2fr 1fr 1fr 1fr; padding:32px 0}
.footer-bottom{border-top:1px solid var(--color-border); padding:16px 0; color:var(--color-muted); text-align: center;}
@media (max-width:1024px){ .footer-top{grid-template-columns:1fr 1fr; padding: 1em;} }

/* Gallery */
.gallery{display:grid; grid-template-columns:2fr 1fr; gap:16px}
@media (max-width:900px){ .gallery{grid-template-columns:1fr} }
.gallery .thumbs{display:grid; gap:12px; grid-template-columns:repeat(3,1fr)}
.gallery .thumbs img{border-radius:12px; border:1px solid var(--color-border); cursor:pointer}
.gallery .main{border-radius:16px; overflow:hidden; border:1px solid var(--color-border)}

/* Table */
.table{width:100%; border-collapse:collapse; border:1px solid var(--color-border); background:#fff; border-radius:12px; overflow:hidden}
.table th,.table td{padding:12px; border-bottom:1px solid var(--color-border); text-align:left}
.table th{background:#fafafa; color:var(--color-muted); font-weight:700}
.table tr:last-child td{border-bottom:none}

/* FAQ */
details{background:#fff; border:1px solid var(--color-border); border-radius:12px; padding:12px 16px}
details + details{margin-top:10px}
summary{cursor:pointer; font-weight:700}

/* Chips / tags */
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{background:#fff; border:1px solid var(--color-border); padding:6px 10px; border-radius:999px; font-size:13px}
/* Small helpers */
.muted{color:var(--color-muted)}
.center{display:flex; align-items:center; justify-content:center}
.hidden{display:none}
hr.sep{border:none; height:1px; background:var(--color-border); margin:24px 0}

/* Sticky filter on offers */
.filters{position:sticky; top:70px; z-index:10; background:rgba(255,255,255,.8); backdrop-filter:blur(6px); padding:12px; border:1px solid var(--color-border); border-radius:12px}




/* Category Articel */

  .categories{
    display:grid;
    grid-template-columns:1fr;
    gap:22px;
    padding: 2em;
    margin: auto;
    max-width: 78em;
  }
  @media (min-width:670px){
    .categories{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  }

  /* Card */
  .cat-card{
    background:var(--card-bg);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    display:flex;
    flex-direction:column;
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .cat-card:focus-within,
  .cat-card:hover{ transform:translateY(-4px); box-shadow:0 16px 36px rgba(0,0,0,.12); }

  /* Media */
  .cat-media{
    position:relative;
    width:100%;
    aspect-ratio: 4/3;
    background:
      linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.15)),
      var(--img, linear-gradient(135deg,#d4d4d4,#eeeeee));
    background-size:cover;
    background-position:center;
  }

  /* Content */
  .cat-content{ padding:18px 18px 20px }
  .cat-title{ font-size:1.35rem; line-height:1.2; margin:0 0 6px }
  .cat-sub{ color:var(--muted); margin:0 0 14px; font-size:.975rem }


/* --- Mobile Fixes: Protokoll/Vermittlung & Über uns --- */
@media (max-width: 670px) {
  /* make the 2fr/1fr grid stack on small screens */
  #protokoll .grid { grid-template-columns: 1fr !important; }

  /* about section image/text stack */
  #about .container.grid { grid-template-columns: 1fr !important; }
  #about .container.grid > img { width: 100%; height: auto; }
}


/* Burger/Menu robustness */
@media (max-width: 670px) {
  header.topbar .container.nav { position: relative; }
  header.topbar .container.nav > ul {
    width: 100%;
    z-index: 1000;
  }
}


/* ===== Robust mobile menu visibility ===== */
@media (max-width: 670px){
  html.nav-open header.topbar .container.nav > ul { display:flex !important; }
}


/* ===== Offers grid layout (subpages) ===== */
#offers-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
@media (max-width:1024px){
  #offers-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:670px){
  #offers-grid{ grid-template-columns:1fr; }
}

/* Card visuals inside offers grid */
#offers-grid .card img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}
#offers-grid .card .card-content{ padding:12px; display:flex; flex-direction:column; gap:8px }
#offers-grid .card .kpis{ display:flex; gap:8px; flex-wrap:wrap }
#offers-grid .card .price{ font-weight:800; margin-top:4px }


/* === Mobile Hard Fix: Protokoll & Vermitteln stack === */
@media (max-width: 670px){
  /* force the 2fr/1fr grid to stack into one column */
  #protokoll .container > .grid { 
    grid-template-columns: 1fr !important; 
    gap: 16px !important;
  }
  /* allow flex/grid children to shrink and avoid overflow */
  #protokoll .container > .grid > * { 
    min-width: 0 !important; 
  }
  /* cards should fill full width on mobile */
  #protokoll .card { 
    width: 100% !important; 
  }
}






/* Headline – elegant + responsive */
.h1 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4.2vw, 42px); /* Desktop nice & fluid */
  margin: 0 0 8px;
}

/* Optional: dezente Unterzeile/Lead unter H1 */
.lead {
  color: var(--color-muted);
  font-size: clamp(16px, 2.4vw, 18px);
  margin: 0 0 14px;
}

/* Mobile-Feintuning exakt unter 670px */
@media (max-width: 670px){
  .h1 { font-size: 22px; }         /* kompakt, aber kräftig */
  .lead { font-size: 14px; }
}



/* Subpage Hero */
.page-hero {
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
}

/* Media: Bild als Background für maximale Kontrolle */
.page-hero-media {
  width: 100%;
  aspect-ratio: 21 / 9; /* Desktop-Bildformat */
  background:
    linear-gradient(180deg, rgba(15,23,42,.25), rgba(15,23,42,.35)), /* dezente Dark-Overlay */
    var(--img) center / cover no-repeat;
}

/* Inhalt */
.page-hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px; /* Abstand unter dem Bild für H1/Lead */
}

/* Breakpoints für edles Verhalten */
@media (max-width: 1024px){
  .page-hero-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 670px){
  .page-hero-media { aspect-ratio: 4 / 3; } /* Mobiler Crop – sicherer Fokus */
}




/* Startseiten-H1: Desktop sehr groß, mobil kompakt */
.hero-h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: 84px;            /* deine große Desktop-Schrift */
  margin: 0 0 12px;

  /* schützt vor Zeilenüberläufen */
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ab 670px runterstufen */
@media (max-width: 670px) {
  .hero-h1 {
    font-size: 35px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
}
