/* ============================================================
   HELENE REGER — STYLESHEET
   Design: Warmes Beige Minimalism · Cormorant Garamond + DM Sans
   ============================================================ */

/* ============================================================
   DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* --- Colors --- */
  --color-bg:          #F5F0EA;   /* Warm beige — page background */
  --color-surface:     #EDE6DC;   /* Soft section background, card fills */
  --color-surface-2:   #FAF7F3;   /* Lightest surface — nav, form inputs */
  --color-fg:          #2C2318;   /* Dark warm brown — primary text */
  --color-fg-muted:    #6B5B4E;   /* Secondary text, captions */
  --color-accent:      #8B6A4A;   /* Terracotta — links, highlights */
  --color-accent-hover:#6B4E35;   /* Deeper accent on hover */
  --color-border:      #D4C9BC;   /* Hairline dividers */
  --color-cta:         #2C2318;   /* CTA button background */
  --color-cta-text:    #F5F0EA;   /* CTA button label */

  /* --- Typography --- */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* --- Type Scale --- */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.375rem;   /* 22px */
  --text-2xl:  1.875rem;   /* 30px */
  --text-3xl:  2.5rem;     /* 40px */
  --text-4xl:  3.5rem;     /* 56px */
  --text-5xl:  5rem;       /* 80px */

  /* --- Spacing (8px base) --- */
  --space-1: 0.5rem;   /*  8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */
  --space-7: 6rem;     /* 96px */
  --space-8: 8rem;     /* 128px */

  /* --- Layout --- */
  --container:   1160px;
  --radius-sm:   4px;
  --radius-md:   12px;
  --radius-lg:   24px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain texture — adds warmth, stops it feeling sterile */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
}


/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.overline {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

em {
  font-style: italic;
}


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section-header {
  margin-bottom: var(--space-6);
  max-width: 580px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-fg-muted);
  line-height: 1.75;
  margin-top: var(--space-2);
  font-weight: 300;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.9rem 2.2rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 35, 24, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: transparent;
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.85rem 2.2rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.btn-outline:hover {
  background: var(--color-fg);
  border-color: var(--color-fg);
  color: var(--color-cta-text);
  transform: translateY(-2px);
}

.btn-text {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-fg-muted);
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-border);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.btn-text:hover {
  color: var(--color-fg);
  text-decoration-color: var(--color-fg-muted);
}


/* ============================================================
   NAVIGATION
   ============================================================ */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  /* Safe area for notched iPhones (Dynamic Island, Face ID) */
  padding-top: env(safe-area-inset-top);
  transition:
    background 0.35s var(--ease-out),
    backdrop-filter 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

#nav.scrolled {
  background: rgba(250, 247, 243, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-fg);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-fg-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.25s var(--ease-out);
}

.nav-links a:hover {
  color: var(--color-fg);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .nav-cta {
  font-weight: 500;
  color: var(--color-fg);
  border: 1px solid var(--color-border);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-links .nav-cta:hover {
  background: var(--color-fg);
  border-color: var(--color-fg);
  color: var(--color-cta-text);
}

/* Hamburger — min 44×44px touch target */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px 11px; /* ensures ~44×44px tap area */
  margin-right: -11px; /* offset padding so it doesn't shift layout */
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-fg);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6) var(--space-5);
  /* Safe area for notched iPhones */
  padding-top: max(var(--space-6), env(safe-area-inset-top));
  padding-bottom: max(var(--space-5), env(safe-area-inset-bottom));
  padding-left: max(var(--space-5), env(safe-area-inset-left));
  padding-right: max(var(--space-5), env(safe-area-inset-right));
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-close {
  position: absolute;
  top: max(var(--space-3), env(safe-area-inset-top));
  right: max(var(--space-4), env(safe-area-inset-right));
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-fg-muted);
  /* 44×44px touch target */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.mobile-close:hover {
  color: var(--color-fg);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 7vw, var(--text-3xl));
  color: var(--color-fg);
  font-weight: 400;
  transition: color 0.2s;
  display: inline-block;
}

.mobile-menu a:hover {
  color: var(--color-accent);
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.section-hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--space-7) + 72px) var(--space-4) var(--space-7);
  position: relative;
  overflow: hidden;
}

/* Organic background blob */
.hero-bg-shape {
  position: absolute;
  top: 8%;
  right: -8%;
  width: 52%;
  height: 84%;
  background: var(--color-surface);
  border-radius: 42% 58% 62% 38% / 40% 44% 56% 60%;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  position: relative;
}

.hero-name {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-5xl));
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: var(--space-4);
  color: var(--color-fg);
}

.hero-name em {
  color: var(--color-accent);
  display: block;
  font-weight: 400;
}

.hero-tagline {
  font-size: var(--text-lg);
  color: var(--color-fg-muted);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: var(--space-5);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero photo */
.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 500px;
}

.hero-photo-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(44, 35, 24, 0.08),
    0 20px 64px rgba(44, 35, 24, 0.14);
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.hero-accent-circle {
  position: absolute;
  bottom: -28px;
  left: -36px;
  z-index: 3;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--color-bg);
  box-shadow: 0 4px 24px rgba(44, 35, 24, 0.12);
}

.hero-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating quote accent */
.hero-quote {
  position: absolute;
  top: -20px;
  right: -24px;
  z-index: 4;
  background: var(--color-fg);
  color: var(--color-cta-text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(44, 35, 24, 0.2);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  z-index: 2;
  animation: scrollPulse 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--color-fg-muted));
  display: block;
}

.scroll-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
  font-weight: 500;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-50%) translateY(6px);
  }
}


/* ============================================================
   ÜBER MICH SECTION
   ============================================================ */

.section-ueber-mich {
  padding: var(--space-7) 0;
}

.ueber-mich-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

/* Left column — decorative quote block */
.ueber-mich-visual {
  display: flex;
  align-items: stretch;
}

.ueber-mich-quote-block {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ueber-mich-quote-block::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0.7;
  color: var(--color-accent);
  opacity: 0.25;
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  pointer-events: none;
}

.ueber-mich-quote-block blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--color-fg);
  margin: 0;
  padding-top: var(--space-3);
  position: relative;
  z-index: 1;
}

/* Right column — text content */
.ueber-mich-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ueber-mich-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-fg);
  margin: 0;
}

.ueber-mich-text h2 em {
  font-style: italic;
  color: var(--color-accent);
}

.ueber-mich-text #ueberMichAbsaetze p {
  color: var(--color-fg-muted);
  line-height: 1.75;
  margin: 0;
}

.ueber-mich-text #ueberMichAbsaetze p + p {
  margin-top: var(--space-2);
}

.ueber-mich-text .btn-outline {
  align-self: flex-start;
  margin-top: var(--space-2);
}

/* Responsive */
@media (max-width: 960px) {
  .ueber-mich-inner {
    gap: var(--space-5);
  }

  .ueber-mich-text h2 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 768px) {
  .ueber-mich-inner {
    grid-template-columns: 1fr;
  }

  .ueber-mich-visual {
    order: 2;
  }

  .ueber-mich-text {
    order: 1;
  }

  .ueber-mich-quote-block {
    padding: var(--space-5) var(--space-4);
  }

  .ueber-mich-quote-block blockquote {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .ueber-mich-text h2 {
    font-size: var(--text-2xl);
  }
}


/* ============================================================
   SOCIALS SECTION
   ============================================================ */

.section-socials {
  background: var(--color-surface);
  padding: var(--space-7) 0;
}

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.social-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--color-fg);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background 0.2s;
  cursor: pointer;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(44, 35, 24, 0.1);
  background: var(--color-bg);
}

.social-card svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.social-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
}

.social-card-desc {
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
  margin: 0;
}

.social-card-arrow {
  margin-top: auto;
  font-size: var(--text-base);
  color: var(--color-accent);
  transition: transform 0.2s var(--ease-out);
  display: block;
}

.social-card:hover .social-card-arrow {
  transform: translateX(5px);
}


/* ============================================================
   THEMEN SECTION
   ============================================================ */

.section-themen {
  padding: var(--space-7) 0;
  background: var(--color-bg);
}

.section-themen .section-header h2 em {
  display: block;
}

.themen-list {
  border-top: 1px solid var(--color-border);
  overflow: hidden; /* prevent horizontal scroll from negative-margin hover effect */
}

.thema-item {
  display: grid;
  grid-template-columns: 88px 1fr 200px;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-5) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s;
  cursor: default;
  margin: 0 calc(var(--space-2) * -1);
}

.thema-item:hover {
  background: var(--color-surface);
}

.thema-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-style: italic;
  font-weight: 300;
  color: var(--color-border);
  line-height: 1;
  user-select: none;
  padding-top: 6px;
}

.thema-content {
  padding-top: 4px;
}

.thema-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-2);
  line-height: 1.2;
  transition: color 0.2s;
}

.thema-item:hover .thema-title {
  color: var(--color-accent);
}

.thema-desc {
  font-size: var(--text-base);
  color: var(--color-fg-muted);
  line-height: 1.75;
  max-width: 560px;
  font-weight: 300;
}

.thema-tag {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-fg-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  align-self: start;
  margin-top: 10px;
}

.themen-cta {
  margin-top: var(--space-6);
  display: flex;
  justify-content: flex-end;
}


/* ============================================================
   TERMINE SECTION
   ============================================================ */

.section-termine {
  background: var(--color-surface);
  padding: var(--space-7) 0;
}

.termine-list {
  max-width: 720px;
  margin: var(--space-5) auto 0;
  border-top: 1px solid var(--color-border);
}

.termin-item {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}

.termin-datum {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding-top: 5px;
  line-height: 1.4;
}

.termin-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.termin-titel {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.2;
}

.termin-ort {
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 300;
}

.termin-beschreibung {
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
  font-weight: 300;
}

.termin-ticket {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid currentColor;
  padding: 0.65rem 1.2rem; /* ~44px height for touch */
  border-radius: var(--radius-full);
  margin-top: 6px;
  width: fit-content;
  transition: background 0.2s, color 0.2s;
}

.termin-ticket:hover {
  background: var(--color-accent);
  color: white;
}

.termine-empty {
  text-align: center;
  padding: var(--space-6);
  color: var(--color-fg-muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.6;
}

.termine-note {
  max-width: 720px;
  margin: var(--space-4) auto 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
}

.termine-note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.termine-note a:hover {
  color: var(--color-accent-hover);
}


/* ============================================================
   KONTAKT SECTION
   ============================================================ */

.section-kontakt {
  background: var(--color-bg);
  padding: var(--space-7) 0 var(--space-8);
}

.kontakt-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-8);
  align-items: start;
}

.kontakt-text h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  line-height: 1.05;
}

.kontakt-text p {
  color: var(--color-fg-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
  max-width: 400px;
  font-weight: 300;
}

.kontakt-email {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--color-border);
  transition: color 0.2s, text-decoration-color 0.2s;
  display: inline-block;
}

.kontakt-email:hover {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}

/* Contact Form */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-fg-muted);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
  outline: none;
  width: 100%;
  transition: border-color 0.25s var(--ease-out);
  resize: vertical;
  min-height: 44px;
  font-weight: 300;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-border);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--color-accent);
}

.form-group input.error,
.form-group textarea.error {
  border-bottom-color: #b94040;
}

.btn-submit {
  margin-top: var(--space-2);
  align-self: flex-start;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-fg-muted);
  margin-top: calc(var(--space-1) * -1);
  font-weight: 300;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-fg);
  color: var(--color-surface);
  padding: var(--space-4) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-surface-2);
  letter-spacing: 0.02em;
}

.footer-nav {
  display: flex;
  gap: var(--space-4);
}

.footer-nav a {
  font-size: var(--text-xs);
  color: var(--color-fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--color-surface-2);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-fg-muted);
}


/* ============================================================
   LEGAL SECTIONS
   ============================================================ */

.section-legal {
  background: var(--color-surface);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}

.section-legal h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.section-legal p {
  color: var(--color-fg-muted);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--space-3);
  max-width: 680px;
  font-weight: 300;
}

.section-legal a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ============================================================
   SCROLL-IN ANIMATIONS
   ============================================================ */

.fade-in-section {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE — TABLET (max 960px)
   ============================================================ */

@media (max-width: 960px) {
  :root {
    --text-3xl: 2rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.75rem;
    --space-7: 5rem;
    --space-8: 6rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .hero-visual {
    order: -1;
    justify-self: center;
    max-width: 380px;
    width: 100%;
  }

  .hero-bg-shape {
    display: none;
  }

  .hero-quote {
    display: none;
  }

  .thema-item {
    grid-template-columns: 64px 1fr;
    gap: var(--space-4);
  }

  .thema-tag {
    display: none;
  }

  .kontakt-text h2 {
    font-size: var(--text-3xl);
  }
}


/* ============================================================
   RESPONSIVE — INTERMEDIATE (max 768px)
   Single column for kontakt + termin earlier, hamburger nav
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --space-7: 4rem;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .section-hero {
    min-height: unset; /* don't force full-screen on small phones */
    padding-top: calc(var(--space-5) + 64px);
    padding-bottom: var(--space-5);
  }

  .hero-accent-circle {
    display: none; /* prevent overflow risk on mobile */
  }

  .hero-tagline {
    max-width: 100%; /* let it flow naturally */
  }

  /* Grain texture: disable fixed-position overlay on mobile (scroll jank) */
  body::after {
    display: none;
  }

  /* Themen */
  .thema-item {
    margin: 0; /* remove negative margin hover hack */
    padding: var(--space-4) 0;
  }

  .themen-cta {
    justify-content: flex-start;
  }

  /* Termine */
  .termin-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .termin-datum {
    padding-top: 0;
    font-size: var(--text-xs); /* 12px — readable, was incorrectly 10px */
  }

  /* Kontakt: single column at 768px (was only at 960px, but 2-col at 768px is too tight) */
  .kontakt-inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  /* Form inputs: explicit 16px prevents iOS Safari zoom on focus */
  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: var(--space-2) var(--space-1); /* add horizontal padding */
  }
}


/* ============================================================
   RESPONSIVE — MEDIUM MOBILE (max 600px)
   Intermediate breakpoint for 5–6" phones in landscape / small tablets
   ============================================================ */

@media (max-width: 600px) {
  .socials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .social-card {
    padding: var(--space-3); /* reduce card padding from 32px to 24px */
  }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ============================================================ */

@media (max-width: 480px) {
  :root {
    --text-4xl: 2.5rem;
  }

  /* Reduce container padding on 320–480px phones */
  .container {
    padding: 0 var(--space-3); /* 24px instead of 32px */
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* Full-width buttons on very small screens */
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .thema-item {
    grid-template-columns: 1fr;
  }

  .thema-number {
    display: none;
  }

  /* Compact textarea on small screens */
  .form-group textarea {
    min-height: 100px;
  }
}


/* ============================================================
   ACTIVE NAV LINK
   ============================================================ */

.nav-links a.active {
  color: var(--color-fg);
}

.nav-links a.active::after {
  width: 100%;
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

/* Respects user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Keyboard focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
