/* === Self-hosted Lora (variable, latin-ext covers ä ö ü ß) — body text & headings === */
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/lora-latin-ext-400-700-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/lora-latin-400-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* === Variables === */
:root {
  --bg: #FDFCF9;
  --bg-card: #FFFFFF;
  --primary: #1A1A1A;
  --primary-dark: #000000;
  --primary-light: #EFEEE9;
  --primary-xlight: #F7F6F2;
  --mint: #4A7A6B;
  --mint-dark: #2F5748;
  --mint-light: #E4EEE9;
  --rose: #8C6FC4;
  --rose-light: #ECE4F9;
  --peach: #FFD9B4;
  --text: #1A1A1A;
  --text-muted: #55524A;
  --border: #1A1A1A;
  --border-soft: #DEDBD1;
  --shadow-sm: 0 2px 0 rgba(26, 26, 26, 0.06);
  --shadow-md: 4px 4px 0 rgba(26, 26, 26, 1);
  --shadow-lg: 8px 8px 0 rgba(26, 26, 26, 1);
  --radius: 4px;
  --radius-lg: 4px;
  --radius-xl: 4px;
  --nav-h: 72px;
  --max-w: 1100px;
  --ease: 0.15s ease;
  color-scheme: light;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--rose); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--primary); }
ul { list-style: none; }
address { font-style: normal; }
img { max-width: 100%; display: block; }

/* === Layout === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Typography === */
h1, h2, h3, h4, .nav-logo, .footer-logo, .about-badge, .btn {
  font-family: 'Lora', Georgia, serif;
  text-transform: uppercase;
}

h1, h2, h3, h4 { overflow-wrap: break-word; }

h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.005em; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }

p { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

/* === Button === */
.btn {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: all var(--ease);
}

.btn-primary {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(26, 26, 26, 1);
}

/* === Header / Nav === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 3px solid var(--border);
}

/* .header is a flex container, so the .container child must be told to fill it */
.header > .container {
  flex: 1;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.nav-logo:hover { color: var(--rose); }

.nav-logo-icon {
  height: 1.6rem;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  transition: all var(--ease);
}
.nav-link:hover,
.nav-link.active {
  color: var(--rose);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  width: 26px;
  height: 20px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  box-sizing: content-box;
}

.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  flex: none;
  background: var(--text);
  border-radius: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background: var(--bg);
  border-bottom: 3px solid var(--border);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.85rem;
}

.hero-title {
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 500px;
}

/* Decorative blobs removed in favour of flat editorial background;
   elements kept invisible so markup/JS referencing them still works. */
.hero-blobs { display: none; }

/* === Sections === */
.section { padding: 5.5rem 0; }

.section-alt {
  background: var(--primary-light);
  border-bottom: 3px solid var(--border);
}

.section-title {
  text-align: center;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* === Preisliste === */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.price-group {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.price-group-title {
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-soft);
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.price-disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--primary-light);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.price-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.price-item-single { justify-content: center; }

.price-name { color: var(--text-muted); }

.price-value {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* === Team === */
.team-photo {
  margin-bottom: 3rem;
}

.team-photo-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.team-photo-placeholder {
  display: none;
  aspect-ratio: 21 / 9;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.team-photo-icon { font-size: 2.2rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.75rem;
}

.team-member {
  text-align: center;
}

.team-avatar {
  position: relative;
  width: 100%;
  max-width: 160px;
  margin: 0 auto 1rem;
}

.team-avatar-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.team-avatar-placeholder {
  display: none;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px dashed var(--border);
  font-family: 'Lora', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
}

.team-avatar-purple { background: var(--primary-light); border-radius: 50%; }
.team-avatar-mint   { background: var(--mint-light); border-radius: 50%; }
.team-avatar-rose   { background: var(--rose-light); border-radius: 50%; }
.team-avatar-peach  { background: var(--peach); border-radius: 50%; }

.team-name {
  color: var(--text);
  font-size: 1.05rem;
}

/* === About === */
.about {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-badge {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  background: var(--rose);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.about-title {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* === Page Header (legal pages) === */
.page-header {
  background: var(--primary-light);
  border-bottom: 3px solid var(--border);
  padding: 4.5rem 0 3rem;
}

.page-header h1 { margin-bottom: 0.5rem; }
.page-header p  { color: var(--text-muted); margin: 0; }

/* === Legal Content === */
.legal-content { padding: 4rem 0 6rem; }

.legal-inner { max-width: 780px; margin: 0 auto; }

.legal-inner h2 {
  font-size: 1.05rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.legal-inner h2:first-child { margin-top: 0; }

.legal-inner h3 {
  font-size: 0.97rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-inner p {
  color: var(--text);
  font-size: 0.97rem;
  margin-bottom: 0.85rem;
}

.legal-inner ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.legal-inner ul li {
  margin-bottom: 0.4rem;
  font-size: 0.97rem;
}
.legal-inner a {
  color: var(--rose);
  text-decoration: underline;
}

/* === Footer === */
.footer {
  background: var(--primary);
  color: #fff;
  border-top: 3px solid var(--border);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: #B8B6AD;
  margin-bottom: 1.25rem;
}

.footer-address {
  font-size: 0.9rem;
  color: #EFEEE9;
  line-height: 1.9;
}
.footer-address a { color: #EFEEE9; }
.footer-address a:hover { color: var(--rose); }

.footer-heading {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 1rem;
}

.hours-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
.hours-table td {
  padding: 0.3rem 0.75rem 0.3rem 0;
  color: #EFEEE9;
  vertical-align: top;
}
.hours-table td:first-child {
  color: #B8B6AD;
  white-space: nowrap;
  padding-right: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: #B8B6AD;
}
.footer-links a:hover { color: var(--rose); }

.footer-bottom {
  border-top: 1px solid #3A3A3A;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.85rem; color: #B8B6AD; margin: 0; }

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a { font-size: 0.85rem; color: #B8B6AD; }
.footer-bottom-links a:hover { color: var(--rose); }

/* === Responsive === */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 3px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-menu.open { display: flex; }

  .nav-link { padding: 0.85rem 1rem; }

  .hero { padding: 4.5rem 0 3.5rem; }

  .section { padding: 3.5rem 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .page-header { padding: 3rem 0 2rem; }
  .legal-content { padding: 2.5rem 0 4rem; }

  /* Long German compounds ("Geschäftsbedingungen") overflow narrow screens —
     let them hyphenate (html lang="de") and shrink the floor of the clamp. */
  .page-header h1,
  .legal-inner h2,
  .legal-inner h3 {
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .page-header h1 { font-size: clamp(1.6rem, 7vw, 2.6rem); }
}

@media (max-width: 480px) {
  .btn { display: block; text-align: center; }
  .footer-bottom-links { gap: 1rem; }
}

/* === Error pages === */
.error-page {
  min-height: calc(100vh - var(--nav-h) - 300px);
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.error-content {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  font-family: 'Lora', Georgia, serif;
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-light);
  margin-bottom: 0;
}

.error-title {
  margin-bottom: 1rem;
  color: var(--text);
}

.error-text {
  margin-bottom: 2rem;
}
