/* assets/css/styles.css */

/* Farbklima & Grundwerte */
:root{
  --bg:#faf9f7;
  --text:#1b1b1b;
  --muted:#5b5b5b;
  --brand:#7a6b5a;
  --brand-2:#bba891;
  --paper:#fffefc;
  --accent:#9c8060;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Karla", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height:1.5;
}
img{max-width:100%;height:auto;display:block}

h1,h2,h3,.section-title,.brand-title{
  font-family:"Playfair Display", Georgia, serif;
  letter-spacing:.2px;
}

.container{width:min(1100px, 92%);margin:0 auto}

/* Header & Navigation */
.site-header{
  position:sticky;
  top:0;
  background:rgba(250,249,247,.9);
  backdrop-filter:saturate(180%) blur(6px);
  border-bottom:1px solid rgba(153,125,98,.25);
  box-shadow: 0 8px 30px rgba(0,0,0,.03);
  z-index:20;
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.75rem 0;
}
.brand{display:flex;flex-direction:column;text-decoration:none;color:inherit}
.brand-title{font-weight:700;letter-spacing:.2px}
.brand-tagline{font-size:.9rem;color:var(--muted)}

.nav-toggle{
  display:none;
  border:1px solid #ddd;
  background:var(--paper);
  padding:.5rem .65rem;
  border-radius:.5rem;
  cursor:pointer;
}
.nav ul{list-style:none;display:flex;gap:.75rem;margin:0;padding:0}
.nav a{
  display:inline-block;
  padding:.5rem .75rem;
  border-radius:.6rem;
  text-decoration:none;
  color:#333;
}
.nav a:hover{background:#efe9e1}
.nav a.active{background:var(--brand);color:white}

@media (max-width: 860px){
  .nav-toggle{display:block}
  .nav{
    display:none;
    position:fixed;
    inset:3.5rem 1rem auto 1rem;
    background:var(--paper);
    border:1px solid #e7dfd5;
    border-radius:1rem;
    padding:.5rem;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
  }
  .nav.open{display:block}
  .nav ul{flex-direction:column}
}

/* Atelier-Chic Hintergrund */
body {
  background:
    radial-gradient(1200px 600px at 10% -20%, rgba(123,106,90,.06), transparent 60%),
    radial-gradient(800px 400px at 110% 10%, rgba(187,168,145,.06), transparent 55%),
    var(--bg);
}

/* Hero */
.hero{
  position:relative;
  display:grid;
  min-height:56vh;
  place-items:center;
  border-bottom:1px solid #e8e2da;
  background:linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.15));
}
.hero .hero-inner{
  padding:5rem 0;
  text-align:center;
}
.hero h1{font-size:clamp(1.8rem, 3.8vw, 3.2rem);margin:.2rem 0}
.hero p{font-size:clamp(1rem, 2vw, 1.3rem);opacity:.95}

/* Sections & Layout */
.section{padding:3rem 0}
.grid{display:grid;gap:1rem}
.grid-3{grid-template-columns: repeat(3, minmax(0, 1fr))}
@media (max-width: 900px){ .grid-3{grid-template-columns: repeat(2, 1fr)} }
@media (max-width: 580px){ .grid-3{grid-template-columns: 1fr} }

/* Cards */
.card{
  background:var(--paper);
  border:1px solid rgba(153,125,98,.18);
  border-radius:1rem;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(0,0,0,.04);
}
.card .content{padding:1rem 1.1rem}
.kicker{
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--accent);
  font-size:.8rem;
}
.section-title{font-size:1.6rem;margin:0 0 .5rem 0}
.meta{color:var(--muted);font-size:.95rem}

/* Einheitliche Thumbnails auf der Startseite */
.card .thumb{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit:cover;
  display:block;
  border-bottom:1px solid rgba(153,125,98,.22);
}

/* Galerie */
.gallery{
  columns: 3 280px;
  column-gap: 1rem;
}
.gallery a{display:block;break-inside:avoid; transform: translateZ(0);}
.gallery img{
  width:100%;
  border-radius:.8rem;
  margin:0 0 1rem 0;
  border:1px solid #eadfce;
  background:#fff;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.gallery a:hover img{
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  filter: saturate(1.03);
}

/* Kategorie-Auswahl (Chips) in der Galerie */
.gallery-filter{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:.5rem 0 1.25rem 0;
}
.filter-chip{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.45rem .85rem;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(153,125,98,.25);
  text-decoration:none;
  color:#3a322a;
  font-weight:600;
  font-size:.92rem;
  transition: background .2s ease, border-color .2s ease, transform .06s ease;
}
.filter-chip:hover{ background:#fff9f3; transform: translateY(-1px); }
.filter-chip.active{
  background: var(--brand);
  border-color: var(--brand);
  color:#fff;
}
.filter-chip .count{ font-weight:600; font-size:.88rem; opacity:.9; }

/* Galerie-Header */
.gallery-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.gallery-header .meta{ font-size:.95rem; color: var(--muted); }

/* Buttons */
.cta{
  display:inline-block;
  background:var(--accent);
  color:white;
  text-decoration:none;
  padding:.75rem 1rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.07);
  transition:transform .08s ease, opacity .2s ease;
}
.cta:hover{opacity:.95; transform:translateY(-1px);}

/* Footer */
.site-footer{border-top:1px solid #e8e2da;margin-top:3rem;background:var(--paper)}
.footer-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:1rem;
  padding:2rem 0;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.copy{text-align:center;border-top:1px solid #eee;padding:1rem 0;color:var(--muted);font-size:.9rem}
@media (max-width:760px){ .footer-grid{grid-template-columns:1fr} }

/* Hinweise & Formulare */
.notice{
  padding:1rem;
  border:1px dashed #d5caba;
  border-radius:.8rem;
  background:#fffcf7;
}
.form{display:grid;gap:.75rem;max-width:720px}
.input, textarea{
  width:100%;
  padding:.75rem;
  border:1px solid #d9cdbd;
  border-radius:.6rem;
  background:white;
}
textarea{min-height:140px;resize:vertical}

/* Code-Blöcke */
code, pre{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace}
pre{background:#fff; border:1px solid #eee; padding:.75rem; border-radius:.6rem; overflow:auto}
