/*
Theme Name: Fräulein Rosi Fotobox Onepager
Theme URI: https://example.com/
Author: ChatGPT
Description: v1.4 – DSGVO-ready, Milchglas-Header mit animiertem Burger-Menü und Shrink-on-Scroll.
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain: rosi-fotobox
*/

:root {
  --bg: #FFE7E8;
  --text: #3d3d3d; /* #3d3d3d #2f2f2f */
  --muted: #3d3d3d; /* #3d3d3d #2f2f2f */
  --card: #ffffff;
  --accent: #2f2f2f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

/* === GLOBAL === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Arial Narrow", Arial, sans-serif;
  line-height: 1.65;
  font-size: clamp(16px, 1.9vw, 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === LAYOUT === */
.container { width: min(1080px, 92%); margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section h2 { font-size: clamp(26px, 5.2vw, 40px); margin: 0 0 20px; }

/* === HEADER + LOGO === */
/* Milchglas-Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;

  /* halbtransparent + milchig */
  background: rgba(255,255,255,.35);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);

  border-bottom: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);

  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
  padding-top: 18px;
  padding-bottom: 10px;

  isolation: isolate;
  background-clip: padding-box;
}

/* Beim Scrollen dichter + stärkerer Blur + kompakter */
body.scrolled .site-header{
	background: rgba(255,255,255,.30);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  padding-top: 6px;
  padding-bottom: 4px;
}

/* === LOGO === */
.logo{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  transition: transform .35s ease, opacity .35s ease;
}

.logo img {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  transition: width .35s ease, height .35s ease, transform .35s ease;
}

.logo .brand {
  font-weight: 600;
  font-size: 22px;
  transition: font-size .35s ease, opacity .35s ease;
}

/* Logo-Größenwechsel beim Scrollen */
body.scrolled .logo img {
  width: 70px;
  height: 70px;
  transform: scale(0.95);
}

body.scrolled .logo .brand {
  font-size: 16px;
  opacity: 0.9;
}

/* === NAVIGATION === */
.navbar { display: flex; align-items: center; justify-content: center; width: 100%; }
.nav-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.nav-links a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .2s ease, transform .12s ease;
}
.nav-links a:hover { background: rgba(0,0,0,.06); }
.nav-links a:active { transform: scale(.98); }

/* === BURGER-MENÜ (neu, clean & modern) === */
.burger {
  --burger-size: 20px;      /* Gesamtgröße */
  --burger-thickness: 2px;  /* Linien-Dicke */
  --burger-gap: 4px;        /* Abstand zwischen Linien */
  --burger-color: var(--text);

  width: var(--burger-size);
  height: calc(var(--burger-thickness) * 3 + var(--burger-gap) * 2);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity .3s ease;
}

.burger span {
  display: block;
  width: 100%;
  height: var(--burger-thickness);
  background: var(--burger-color);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* Animation bei Klick */
.burger.open span:nth-child(1) {
  transform: translateY(calc(var(--burger-gap) + var(--burger-thickness))) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(calc(-1 * (var(--burger-gap) + var(--burger-thickness)))) rotate(-45deg);
}

/* Hover-Farbe */
.burger:hover span {
  background: rgba(0, 0, 0, .6);
}

/* Sichtbar auf Mobilgeräten */
@media (max-width: 820px) {
  .burger { display: flex; }
}


/* === HERO === */
.hero { padding: clamp(40px, 7vw, 80px) 0 24px; text-align: center; }
.hero h1 { font-size: clamp(30px, 8vw, 56px); margin: 8px 0 14px; line-height: 1.12; }
.hero p { max-width: 760px; margin: 0 auto; }

/* === CTA === */
.cta {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  transition: transform .12s ease, opacity .15s ease;
}
.cta.secondary { background: transparent; color: var(--accent); }
.cta:active { transform: translateY(1px); }
@media (max-width:560px) {
  .cta { display: block; width: 100%; text-align: center; }
  .cta + .cta { margin-left: 0; }
}

/* === GRID / CARDS === */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 22px);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: clamp(18px, 3.6vw, 22px); }
@media(max-width: 980px){ .grid { grid-template-columns: 1fr; } }

/* === PORTFOLIO === */
.portfolio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.portfolio img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
}
@media(max-width: 900px){ .portfolio { grid-template-columns: 1fr; } }

/* === FORM === */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .row.single { grid-template-columns: 1fr; }
@media (max-width: 720px){ form .row { grid-template-columns: 1fr; } }

input, textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  font-size: 16px;
  background: #fff;
  outline: none;
}
input:focus, textarea:focus { border-color: rgba(0,0,0,.35); }
textarea { min-height: 140px; resize: vertical; }

button[type=submit] {
  margin-top: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
}

/* === MISC === */
.notice { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12); background: #fff; margin: 12px 0; }

/* === FOOTER (überarbeitet) === */
.footer {
  padding: 40px 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Container-Layout: Menü über Copyright */
.footer-inner {
  display: flex;
  flex-direction: column; /* Menü über Copyright */
  align-items: center;
  gap: 12px;
}

/* Footer-Menü: horizontal & ohne Punkte */
.footer-nav,
.footer-nav ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.footer-nav li {
  list-style: none !important;
}

.footer-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 4px 6px;
  transition: color .2s ease;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: var(--text);
}

/* Copyright-Zeile */
.footer-meta {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* Desktop: leicht auseinanderziehen, Menü bleibt oben */
@media (min-width: 821px) {
  .footer-inner {
    flex-direction: column; /* Menü bleibt über Copyright */
    align-items: center;
    text-align: center;
  }
}

/* === MOBILE MENU TOGGLE (fix) === */
@media (max-width: 820px) {
  /* Burger sichtbar (hast du schon), Menü-Container referenzierbar */
  .navbar { position: relative; }

  /* Menü standardmäßig VERSTECKT */
  .nav-links,
  .nav-links ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(0,0,0,.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
    padding: 12px 0;
    margin: 0;
    z-index: 70; /* über Inhalt, unter Header-Logo */
  }

  /* Bei Klick sichtbar */
  .nav-links.open,
  .nav-links.open ul {
    display: flex;
  }

/* Links über die ganze Breite anklickbar */
.nav-links { 
  padding: 0;                 /* bis zum Rand */
}
.nav-links li {
  width: 100%;                /* Listenelemente volle Breite */
}
.nav-links a {
  display: block;
  width: 100%;
  padding: 18px 24px;         /* größere Tap-Fläche */
  text-align: left;           /* oder center – Geschmackssache */
  border-radius: 0;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(0,0,0,.06);
}

}

/* Desktop bleibt horizontal sichtbar (deine Default-Regeln greifen) */
@media (min-width: 821px) {
  .nav-links { display:flex; }
}
