/* Liv Website – Warm & Mystisch Brand (static styles)
   Hinweis: bewusst ohne Sonderzeichen/Emojis in CSS content, um maximale Terminal-Kompatibilität zu halten.
*/

:root{
  /* Brand Palette (warm/mystisch) */
  --bg: #0B0A12;          /* Night Ink */
  --bg2:#171129;          /* Midnight Violet */
  --surface:#1E1C22;      /* Velvet Charcoal */
  --surface2:#2A1734;     /* Smoked Plum */

  --text:#F3ECE6;         /* Soft Ivory */
  --muted:#CBBEB5;        /* Warm Mist */

  --accent:#C26D30;       /* Ember Copper */
  --accent2:#8E3A4B;      /* Burnt Rose */
  --accent3:#D9A46A;      /* Golden Amber */
  --danger:#B04B3A;       /* optional */

  --border:#3A2B44;       /* Border Smoke */
  --borderSoft: rgba(243,236,230,.12);

  --shadow: 0 18px 40px rgba(0,0,0,.40);
  --shadowSoft: 0 10px 22px rgba(0,0,0,.28);

  --radius: 18px;
  --container: 1120px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --focus: rgba(217,164,106,.65);
}

[data-theme="light"]{
  /* Warm Light Companion (nicht steril, sondern cremig) */
  --bg:#F8F0EA;           /* Soft Dawn */
  --bg2:#FFFFFF;
  --surface:#FFFFFF;
  --surface2:#FAF2EC;

  --text:#1F1420;
  --muted:#5A4A52;

  --border:#E7D8CF;
  --borderSoft: rgba(31,20,32,.12);

  --shadow: 0 18px 40px rgba(31,20,32,.12);
  --shadowSoft: 0 10px 22px rgba(31,20,32,.10);

  --focus: rgba(194,109,48,.40);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  line-height:1.6;

  /* Warm-mystische Lichtkegel / Glows */
  background:
    radial-gradient(1200px 650px at 12% 10%, rgba(217,164,106,.16), transparent 55%),
    radial-gradient(950px 560px at 85% 18%, rgba(142,58,75,.14), transparent 58%),
    radial-gradient(900px 520px at 55% 92%, rgba(194,109,48,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

::selection{
  background: rgba(217,164,106,.28);
}

a{ color: var(--accent3); text-decoration: none; }
a:hover{ color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* Wenn ein Bild eine feste Box bekommt (Cards, Galerie, Hero etc.),
   soll es immer zentriert und sauber beschnitten (nicht verzerrt) werden. */
.img-cover,
.card img,
.hero-card img,
.shot img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
}
.img-contain{
  width:100%;
  height:100%;
  object-fit: contain;
  object-position: center;
  background: color-mix(in srgb, var(--surface2) 40%, transparent);
}
.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  border-radius: 10px;
  background: var(--surface);
  outline: 2px solid var(--focus);
  z-index: 999;
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg2) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borderSoft);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand-mark{
  width: 40px; height: 40px;
  border-radius: 14px;
  display:grid; place-items:center;

  /* Warm mystic emblem */
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(217,164,106,.65), transparent 60%),
    linear-gradient(135deg, rgba(194,109,48,.45), rgba(142,58,75,.24));
  border: 1px solid var(--borderSoft);
  box-shadow: var(--shadowSoft);
  font-weight: 800;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-text span{
  color: var(--muted);
  font-size: 0.92rem;
}

.nav{ display:flex; align-items:center; position:relative; }
.nav-toggle{
  display:none;
  border: 1px solid var(--borderSoft);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
}
.nav-toggle:focus{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.nav-menu{
  display:flex;
  align-items:center;
  gap: 12px;
}
.nav-menu a{
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--muted);
}
.nav-menu a.active,
.nav-menu a[aria-current="page"]{
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--borderSoft);
}
.nav-menu a.cta{
  color: var(--text);
  background:
    radial-gradient(22px 18px at 20% 20%, rgba(217,164,106,.40), transparent 65%),
    linear-gradient(135deg, rgba(194,109,48,.40), rgba(142,58,75,.22));
  border: 1px solid var(--borderSoft);
  box-shadow: var(--shadowSoft);
}
.mode-toggle{
  border: 1px solid var(--borderSoft);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
}
.mode-toggle:focus{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Sections */
.hero{
  padding: 54px 0 28px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
  align-items: start;
}
.hero h1{
  font-size: clamp(2.0rem, 3.2vw, 3.0rem);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.lead{
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 18px;
}
.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.pillars{
  list-style:none;
  padding:0;
  margin: 14px 0 0;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pillars li{
  font-size: .92rem;
  color: var(--muted);
  border: 1px solid var(--borderSoft);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 8px 10px;
  border-radius: 999px;
}

.section{
  padding: 42px 0;
}
.section.alt{
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(142,58,75,.10), transparent 60%),
    color-mix(in srgb, var(--bg2) 78%, transparent);
  border-top: 1px solid var(--borderSoft);
  border-bottom: 1px solid var(--borderSoft);
}
.section-head{
  margin-bottom: 18px;
}
.section-head h2{
  margin: 0 0 8px;
  font-size: 1.7rem;
}
.section-head p{
  margin:0;
  color: var(--muted);
}
.section-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-hero{
  padding: 34px 0 10px;
}
.page-hero h1{
  margin:0 0 10px;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}

/* Layout helpers */
.grid{
  display:grid;
  gap: 14px;
}
.cards{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.two-col{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}
.stack{ display:grid; gap: 14px; }
.sticky{ position: sticky; top: 88px; }

.card{
  background:
    radial-gradient(420px 220px at 12% 12%, rgba(217,164,106,.10), transparent 60%),
    color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--borderSoft);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h3, .card h2{ margin-top:0; }

.link-card{
  text-decoration:none;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.link-card:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  border-color: rgba(217,164,106,.35);
  text-decoration:none;
}

.notice{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(217,164,106,.45);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
}
.notice.wide{ margin-top: 18px; }
.notice strong{ color: var(--text); }

.bullets, .checklist{
  margin: 10px 0 0;
  padding-left: 18px;
}
.checklist{
  list-style: none;
  padding-left: 0;
}
.checklist li{
  padding-left: 34px;
  position: relative;
  margin: 8px 0;
  color: var(--muted);
}
.checklist li::before{
  content: "OK";
  position:absolute;
  left: 0;
  top: 1px;
  font-size: .72rem;
  letter-spacing: .06em;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(194,109,48,.42), rgba(142,58,75,.22));
  border: 1px solid var(--borderSoft);
}

.muted{ color: var(--muted); }
.small{ font-size: .92rem; }

.steps{
  margin: 0;
  padding-left: 18px;
  display:grid;
  gap: 10px;
}
.steps h3{ margin: 0 0 6px; }

.cta-band{
  padding: 34px 0;
}
.cta-band-inner{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-radius: var(--radius);
  background:
    radial-gradient(500px 260px at 15% 30%, rgba(217,164,106,.22), transparent 60%),
    linear-gradient(135deg, rgba(194,109,48,.28), rgba(142,58,75,.18));
  border: 1px solid rgba(217,164,106,.22);
  padding: 18px;
  box-shadow: var(--shadowSoft);
}

/* Buttons */
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--borderSoft);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  text-decoration:none;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover{
  text-decoration:none;
  filter: brightness(1.04);
  border-color: rgba(217,164,106,.30);
}
.button:active{
  transform: translateY(1px);
}
.button:focus{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.button.primary{
  background:
    radial-gradient(26px 18px at 18% 22%, rgba(217,164,106,.35), transparent 65%),
    linear-gradient(135deg, rgba(194,109,48,.42), rgba(142,58,75,.22));
  border: 1px solid rgba(217,164,106,.22);
  box-shadow: var(--shadowSoft);
}

/* Chips */
.chips{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.chips a{
  border: 1px solid var(--borderSoft);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: filter .18s ease, border-color .18s ease, color .18s ease;
}
.chips a:hover{
  color: var(--text);
  border-color: rgba(217,164,106,.30);
  filter: brightness(1.03);
  text-decoration:none;
}

/* Gallery */
/* Gallery – sharp by default, blur + haiku overlay on hover */
.gallery{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot{
  margin:0;
  position: relative;
  overflow:hidden;
  border-radius: var(--radius);
  border: 1px solid var(--borderSoft);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadowSoft);
}

/* Image: centered + scaled */
.shot-img{
  width:100%;
  height:100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display:block;

  /* default: sharp */
  filter: blur(0px) saturate(1.02) brightness(1.00);
  transform: scale(1.00);

  transition: filter .22s ease, transform .22s ease;
}

/* Readability layer (only visible on hover/focus) */
.shot::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(11,10,18,.08), rgba(11,10,18,.62));
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events:none;
}

/* Haiku overlay (hidden by default) */
.shot-haiku{
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;

  padding: 12px 12px;
  border-radius: 14px;

  background:
    radial-gradient(220px 120px at 20% 20%, rgba(217,164,106,.18), transparent 60%),
    linear-gradient(135deg, rgba(23,17,41,.62), rgba(30,28,34,.62));
  border: 1px solid rgba(217,164,106,.22);
  box-shadow: 0 12px 26px rgba(0,0,0,.28);

  color: var(--text);
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);

  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease, border-color .22s ease;

  pointer-events:none;
}

/* Hover (and keyboard focus fallback): blur image + show overlay */
.shot:hover .shot-img,
.shot:focus-within .shot-img{
  filter: blur(6px) saturate(1.06) brightness(0.92);
  transform: scale(1.06); /* prevents blur-edge clipping */
}

.shot:hover::after,
.shot:focus-within::after{
  opacity: 1;
}

.shot:hover .shot-haiku,
.shot:focus-within .shot-haiku{
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(217,164,106,.35);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .shot-img, .shot::after, .shot-haiku{
    transition: none;
  }
}

/* Forms */
.form .field{ display:grid; gap: 6px; margin-bottom: 12px; }
label{ color: var(--muted); font-size: .95rem; }
input, select, textarea{
  width:100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--borderSoft);
  background: color-mix(in srgb, var(--bg2) 70%, transparent);
  color: var(--text);
  outline: none;
}
input::placeholder, textarea::placeholder{
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}
input:focus, select:focus, textarea:focus{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: rgba(217,164,106,.25);
}
.form-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Accordion */
.accordion{ display:grid; gap: 10px; }
.accordion-item{
  width:100%;
  text-align:left;
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 14px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--borderSoft);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
  transition: filter .18s ease, border-color .18s ease;
}
.accordion-item:hover{
  filter: brightness(1.03);
  border-color: rgba(217,164,106,.25);
}
.accordion-panel{
  padding: 12px 14px;
  border-left: 1px solid var(--borderSoft);
  border-right: 1px solid var(--borderSoft);
  border-bottom: 1px solid var(--borderSoft);
  border-radius: 0 0 var(--radius) var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--muted);
}
.accordion-icon{
  width: 26px;
  height: 26px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  border: 1px solid var(--borderSoft);
  background: color-mix(in srgb, var(--surface2) 55%, transparent);
  color: var(--text);
  font-family: var(--mono);
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--borderSoft);
  padding: 18px 0;
  background: color-mix(in srgb, var(--bg2) 82%, transparent);
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-left{
  display:flex;
  flex-direction: column;
}
.footer-left span{ color: var(--muted); font-size: .92rem; }
.footer-links{ display:flex; gap: 12px; }
.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color: var(--accent3); }
.footer-right{ color: var(--muted); }

/* Responsive */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .sticky{ position: static; }
  .gallery{ grid-template-columns: 1fr; }
  .cta-band-inner{ flex-direction: column; align-items: flex-start; }

  .nav-toggle{ display:inline-flex; }
  .nav-menu{
    display:none;
    position:absolute;
    right: 20px;
    top: 64px;
    padding: 10px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid var(--borderSoft);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
  }
  .nav-menu.open{ display:flex; }
}
