/* ============================================================
   Naturheilpraxis Simone Kranz – Stylesheet
   ============================================================ */

/* ---------- Skip Link (Barrierefreiheit) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary-dk);
  color: var(--color-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  text-decoration: none;
}

/* ---------- Design Tokens ---------- */
:root {
  color-scheme: light;
  --color-primary:      #4a7c59;
  --color-primary-dk:   #2e5239;
  --color-primary-lt:   #a8c5a0;
  --color-primary-bg:   #f7fbf8;
  --color-primary-pale: #f4f9f5;
  --color-text:         #2c2c2c;
  --color-text-muted:   #6a6a6a;
  --color-border:       #d8e8dc;
  --color-white:        #fff;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;

  --shadow-sm: 0 2px 8px  rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 6px 24px rgba(0,0,0,0.13);

  --spacing-section: 5rem;
  --transition: 0.25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure HTML hidden attribute works even if overridden by resets */
[hidden] { display: none !important; }

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.75;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  text-decoration: underline;
  color: var(--color-primary-dk);
}

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

address {
  font-style: normal;
  line-height: 1.8;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; color: var(--color-primary-dk); }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--color-primary-dk); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--color-primary-lt);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--color-primary-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-family: var(--font-serif);
  color: #4a4a4a;
}

blockquote cite {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--color-text-muted);
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacing-section) 0;
  scroll-margin-top: 95px;
}

.bg-light {
  background: var(--color-primary-bg);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 1rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-primary-dk);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Allgemeiner Fokus für interaktive Elemente */
a:focus-visible,
button:focus-visible,
.leistung-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)),
    url('bilder/header-bg.jpg') center 30% / cover no-repeat;
  background:
    linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)),
    image-set(url('bilder/header-bg.webp') type('image/webp'), url('bilder/header-bg.jpg') type('image/jpeg')) center 30% / cover no-repeat;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  overflow: visible;
}

/* -- no extra white glow needed -- */

.header-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 95px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo wrapper: Schild mit abgerundeten Ecken in Beige */
.logo {
  display: flex;
  align-items: center;
  line-height: 1.2;
  min-width: 180px;
  overflow: visible;
  position: relative;
  z-index: 101;
  background: #ede8da;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18), 0 0 0 1px rgba(180,160,120,0.25);
  padding: 10px 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary-dk);
  display: block;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  line-height: 1.3;
}

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

nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  background: #ede8da;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18), 0 0 0 1px rgba(180,160,120,0.25);
  padding: 6px 8px;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  text-decoration: none;
  background: var(--color-primary-pale);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-dk);
  border-radius: 2px;
  transition: all 0.3s;
}

.header-phone {
  color: var(--color-primary-dk);
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: #ede8da;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18), 0 0 0 1px rgba(180,160,120,0.25);
  padding: 6px 14px 4px 14px;
  display: block;
  text-align: center;
}

.header-contact {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
}

.btn-header-call {
  display: block;
  text-align: center;
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 5px 14px 6px 14px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-header-call:hover {
  background: var(--color-primary-dk);
  text-decoration: none;
}

@keyframes vibrate {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-3px) rotate(-1deg); }
  30%  { transform: translateX(3px) rotate(1deg); }
  45%  { transform: translateX(-3px) rotate(-1deg); }
  60%  { transform: translateX(3px) rotate(1deg); }
  75%  { transform: translateX(-2px); }
  90%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.btn-header-call.vibrating {
  animation: vibrate 0.5s ease;
}



/* ---------- HERO ---------- */
.hero {
  min-height: 75vh;
  background:
    linear-gradient(to bottom, rgba(25,52,30,0.50) 0%, rgba(15,38,20,0.62) 100%),
    url('img/heilpraktikerin-kranz.jpg') center 30% / cover no-repeat;
  background:
    linear-gradient(to bottom, rgba(25,52,30,0.50) 0%, rgba(15,38,20,0.62) 100%),
    image-set(url('img/heilpraktikerin-kranz.webp') type('image/webp'), url('img/heilpraktikerin-kranz.jpg') type('image/jpeg')) center 30% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 4rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Parallax only on non-touch devices */
@media (hover: hover) and (min-width: 769px) {
  .hero {
    background-attachment: fixed;
  }
}

.hero-content {
  position: relative;
  max-width: 700px;
  background: rgba(45, 45, 45, 0.55);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  backdrop-filter: blur(2px);
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  font-weight: 400;
}

.hero-content h1 strong {
  display: block;
  font-size: 1.15em;
  font-weight: 700;
}

.hero-content .btn-primary {
  background: var(--color-white);
  color: var(--color-primary-dk) !important;
  border: 2px solid var(--color-white);
}

.hero-content .btn-primary:hover {
  background: transparent;
  color: var(--color-white) !important;
}

.hero-tagline {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-style: italic;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: transform, opacity;
}

.animate-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .animate-in.visible {
    transition: none;
  }

  .flip-inner {
    transition: none;
  }

  .flip-front,
  .flip-back {
    transition: none;
}

  .scroll-top {
    transition: none;
  }

.nav-links a {
    transition: none;
  }

  .scroll-top {
    transition: none;
  }

  .leistung-card:hover .flip-inner,
  .leistung-card:focus-within .flip-inner {
    transform: none;
  }

  .leistung-card:hover .leistung-img,
  .leistung-card:focus-within .leistung-img {
    transform: none;
  }
}

/* ---------- WILLKOMMEN ---------- */
.willkommen-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
}

.willkommen h2 {
  margin-bottom: 1.5rem;
}

.willkommen-portrait {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---------- LEISTUNGEN ---------- */
.section-intro {
  font-size: 1.05rem;
  color: #4a5a4f;
  max-width: 720px;
  margin-bottom: 3rem;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ---------- FLIP CARDS ---------- */
.leistung-card {
  perspective: 1000px;
  aspect-ratio: 1 / 1.25;
  width: 100%;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  transform-style: preserve-3d;
  will-change: transform;
}

.leistung-card:hover .flip-inner,
.leistung-card:focus-within .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
}

.flip-front {
  background: var(--color-white);
  display: flex;
  flex-direction: column;
}

.flip-front-content {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: 0 0 var(--radius) var(--radius);
}

.flip-front .leistung-img,
.flip-front picture {
  border-radius: var(--radius) var(--radius) 0 0;
}

.leistung-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #faf6ee;
  transition: transform 0.5s ease;
}

.leistung-card:hover .leistung-img,
.leistung-card:focus-within .leistung-img {
  transform: scale(1.04);
}

/* Subtle color variation per card */
.leistung-card:nth-child(1) .flip-front-content  { border-top-color: #4a7c59; }
.leistung-card:nth-child(2) .flip-front-content  { border-top-color: #5b8c6a; }
.leistung-card:nth-child(3) .flip-front-content  { border-top-color: #6c9b78; }
.leistung-card:nth-child(4) .flip-front-content  { border-top-color: #4d8060; }
.leistung-card:nth-child(5) .flip-front-content  { border-top-color: #3d6e4e; }
.leistung-card:nth-child(6) .flip-front-content  { border-top-color: #598468; }
.leistung-card:nth-child(7) .flip-front-content  { border-top-color: #659070; }
.leistung-card:nth-child(8) .flip-front-content  { border-top-color: #4e7358; }
.leistung-card:nth-child(9) .flip-front-content  { border-top-color: #6a8e72; }
.leistung-card:nth-child(10) .flip-front-content { border-top-color: #577d62; }
.leistung-card:nth-child(11) .flip-front-content { border-top-color: #48805a; }
.leistung-card:nth-child(12) .flip-front-content { border-top-color: #5c8966; }

.flip-back {
  background: var(--color-primary-dk);
  transform: rotateY(180deg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.flip-back h3 {
  color: var(--color-white);
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

.flip-back p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
}

/* Schließen-Button auf der Rückseite (Touch/Tastatur) */
.flip-close {
  display: none; /* nur sichtbar auf Touch-Geräten via @media */
  margin-top: 1.25rem;
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background var(--transition);
}

.flip-close:hover {
  background: rgba(255,255,255,0.25);
}

@media (hover: none) {
  .flip-close {
    display: inline-block;
  }
}

/* ── Touch: JS-controlled flip state ── */
.leistung-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

/* Touch/Desktop hint */
.flip-hint {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ---------- WAVE DIVIDERS ---------- */
.wave-divider {
  display: block;
  height: 40px;
  background-color: var(--color-primary-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 Q180,15 360,40 Q540,65 720,40 Q900,15 1080,40 Q1260,65 1440,40 L1440,0 L0,0 Z' fill='%23f7fbf8'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  line-height: 0;
  font-size: 0;
}

.wave-flip {
  background-color: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q180,25 360,0 Q540,-25 720,0 Q900,25 1080,0 Q1260,-25 1440,0 L1440,40 L0,40 Z' fill='%23fff'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ---------- ÜBER MICH ---------- */
.vita-layout {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 3rem;
  align-items: start;
}

.vita-portrait-col {
  position: sticky;
  top: 100px;
}

.vita-portrait {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.vita-text p {
  font-size: 0.97rem;
  line-height: 1.8;
}

.vita-timeline {
  background: var(--color-primary-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}

.vita-timeline h3 {
  margin-bottom: 1rem;
}

.timeline {
  list-style: none;
  border-left: 2px solid var(--color-primary-lt);
  padding-left: 1.25rem;
}

.timeline li {
  position: relative;
  padding-bottom: 1rem;
  padding-left: 0.5rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

.timeline-year {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}

.timeline-text {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* ---------- PRAXIS ---------- */
.praxis-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.praxis-foto {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  display: block;
}

.praxis-oeffnung {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.praxis-oeffnung h3 {
  margin-bottom: 0.5rem;
}

.praxis-oeffnung h3:not(:first-child) {
  margin-top: 1.5rem;
}

.hinweis {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* ---------- KONTAKT ---------- */
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kontakt-portrait {
  width: 150px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
  margin-bottom: 0.5rem;
}

.kontakt-info h3 {
  margin-bottom: 0.25rem;
}

.kontakt-info address {
  margin-bottom: 0;
}

.kontakt-hinweis {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Kontakt: Telefon + Button nebeneinander */
.kontakt-phone-box {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: fit-content;
}

.kontakt-phone-link {
  display: flex;
  align-items: center;
  color: var(--color-primary-dk);
  font-size: 1.05rem;
  font-weight: 700;
  background: #ede8da;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  white-space: nowrap;
}

.kontakt-phone-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.kontakt-phone-box .btn-header-call {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 0.9rem;
  padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.map-consent {
  background: var(--color-primary-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 400px;
  justify-content: center;
}

.map-consent-icon {
  font-size: 2.5rem;
}

.map-frame {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

.map-hint {
  margin-top: 0.5rem;
  text-align: center;
}

/* ---------- KRÄUTER BANNER ---------- */
.kraeuter-banner {
  line-height: 0;
}

.kraeuter-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--color-primary-dk);
  color: rgba(255,255,255,0.8);
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--color-primary-lt);
  transition: color var(--transition);
}

footer a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- SCROLL-TO-TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background var(--transition);
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 0.85;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--color-primary-dk);
  opacity: 1;
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .vita-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .vita-portrait-col {
    grid-column: 1 / -1;
    position: static;
  }

  .vita-portrait {
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: top center;
  }

  .praxis-layout,
  .kontakt-layout,
  .willkommen-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .willkommen-portrait {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
  }

  .nav-burger {
    display: flex;
    margin-left: auto;
  }

  nav {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    display: block;
  }

  .nav-toggle:not(:checked) + .nav-burger + .nav-links {
    display: none;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .nav-links a {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e8f0ea;
    border-radius: 0;
  }

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

  .header-contact {
    order: 1;
    margin-left: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .header-phone {
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  .vita-layout {
    grid-template-columns: 1fr;
  }

  .vita-portrait-col {
    position: static;
  }

  .vita-portrait {
    height: auto;
    max-height: none;
    width: 100%;
    object-fit: initial;
  }

  .willkommen-portrait {
    height: auto;
    max-height: none;
    width: 100%;
  }

  .hero {
    min-height: 65vh;
    padding: 2rem 1.25rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 1.5rem 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .leistungen-grid {
    grid-template-columns: 1fr;
  }

  .flip-inner {
    height: 100%;
  }
}

@media (max-width: 400px) {
  .hero-content {
    padding: 1.25rem 1rem;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  body { font-size: 10pt; line-height: 1.4; color: #000; background: #fff; }

  h1 { font-size: 16pt; }
  h2 { font-size: 13pt; margin: 0.8rem 0 0.3rem; color: #000; }
  h3 { font-size: 11pt; margin-bottom: 0.2rem; color: #000; }
  p { color: #000; }
  a { color: #000; text-decoration: underline; }

  /* Hide purely decorative / interactive */
  header, .hero, .kraeuter-banner, .wave-divider,
  .scroll-top, .skip-link, .nav-burger, .nav-toggle,
  .btn-primary, .flip-close, .flip-hint,
  footer, .kontakt-map, #map-container, #map-consent, .map-consent,
  .flip-front-icon {
    display: none !important;
  }

  /* Reset spacing */
  .container { max-width: 100%; padding: 0; }
  .section { padding: 0.5rem 0; }

  /* --- Cards: unflip, stack content --- */
  .leistungen-grid { display: block; }
  .leistung-card {
    height: auto; perspective: none; cursor: default;
    border-bottom: 1px dotted #ccc; padding-bottom: 0.4rem; margin-bottom: 0.4rem;
    break-inside: avoid;
  }
  .flip-inner { height: auto; min-height: 0; transform: none !important; }
  .flip-front, .flip-back {
    position: static !important; transform: none !important;
    backface-visibility: visible !important; -webkit-backface-visibility: visible !important;
    overflow: visible !important; border: none; padding: 0;
    background: #fff !important;
  }
  .flip-front { display: block; }
  .flip-front-content { padding: 0.2rem 0; border-top: none; display: block; }
  .flip-front-content h3 { color: #000; }
  .leistung-img { max-width: 90px; max-height: 50px; float: left; margin: 0 0.5rem 0.2rem 0; }
  .flip-back h3 { display: none; }
  .flip-back p { font-size: 8.5pt; line-height: 1.35; color: #333 !important; }

  /* --- Willkommen --- */
  .willkommen-layout { display: block; }
  .willkommen-bild { display: none; }

  /* --- Über mich --- */
  .vita-layout { display: block; }
  .vita-portrait { max-width: 100px; float: left; margin: 0 0.6rem 0.3rem 0; height: auto; }
  .vita-portrait-col { position: static; }
  .vita-timeline { border: 1px solid #ccc; padding: 0.4rem; margin-top: 0.5rem; clear: both; break-inside: avoid; }
  .timeline li::before { background: #000 !important; }

  /* --- Praxis --- */
  .praxis-layout { display: block; }
  .praxis-foto { display: none; }
  .praxis-oeffnung { border: 1px solid #ccc; padding: 0.4rem; margin-top: 0.5rem; break-inside: avoid; }

  /* --- Kontakt --- */
  .kontakt-layout { display: block; }
  .kontakt-portrait { display: none; }

  /* --- Links --- */
  a[href]::after { content: ' (' attr(href) ')'; font-size: 7pt; word-break: break-all; }
  a[href^='#']::after, a[href^='tel:']::after, a[href^='mailto:']::after { content: none; }

  /* --- Page header --- */
  body::before {
    content: 'Naturheilpraxis Simone Kranz \2014 Bgm.-Wehrmann-Str. 15, 30826 Garbsen \2014 Tel. 05131 55134 \2014 info@hp-kranz.de';
    display: block; font-size: 7pt; border-bottom: 1px solid #000;
    padding-bottom: 0.2rem; margin-bottom: 0.5rem; text-align: center;
  }
}
