/* =============================================
   Jennifer Prangenberg – Website Styles
   Nordic coastal aesthetic · Fast & modern
   ============================================= */

:root {
  /* Markenfarben – Salbeigrün (Haupt) & Steingrau (Akzent), gedämpft */
  --color-sage:        #8fa896;
  --color-sage-dark:   #6b8274;
  --color-sage-light:  #e8ede9;
  --color-sage-soft:   #f4f7f5;
  --color-stone:       #9a9590;
  --color-stone-dark:  #7a756f;
  --color-stone-light: #ebe9e6;

  /* Semantische Aliase (Kompatibilität im bestehenden CSS) */
  --color-deep:      #4a524d;
  --color-ocean:     var(--color-sage-dark);
  --color-teal:      var(--color-sage);
  --color-accent:    var(--color-stone-dark);
  --color-accent-dk: #6a6560;

  --color-sand:      #f5f3f0;
  --color-cream:     #faf9f7;
  --color-surface:   #ffffff;
  --color-text:      #3d4540;
  --color-muted:     #6b756e;
  --color-border:    #ddd9d4;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;

  --shadow-sm:  0 2px 8px rgba(74, 82, 77, 0.06);
  --shadow-md:  0 8px 32px rgba(74, 82, 77, 0.10);
  --shadow-lg:  0 16px 48px rgba(74, 82, 77, 0.12);

  --header-h: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-ocean); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-ocean);
  color: #fff;
  border-color: var(--color-ocean);
}
.btn--primary:hover {
  background: var(--color-deep);
  border-color: var(--color-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-ocean);
  border-color: var(--color-ocean);
}
.btn--secondary:hover {
  background: var(--color-ocean);
  color: #fff;
}

.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  color: #fff;
}

.btn--full { width: 100%; }

/* ---- Header / Nav ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nav__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-deep);
  line-height: 1.2;
}
.nav__logo:hover { color: var(--color-ocean); }
.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.nav__logo-tag {
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__links a:not(.nav__cta):hover { color: var(--color-ocean); }

.nav__cta {
  padding: 0.5rem 1.25rem !important;
  background: var(--color-ocean);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav__cta:hover {
  background: var(--color-deep);
  color: #fff !important;
}
.nav__cta::after { display: none !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-deep);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(74,82,77,0.92) 0%, rgba(107,130,116,0.85) 50%, rgba(143,168,150,0.78) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 6rem;
  max-width: 780px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: rgba(255,255,255,0.85);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 60px; }

/* ---- Nothilfe ---- */
.notfall {
  margin-top: -1rem;
  position: relative;
  z-index: 3;
  padding-bottom: 1rem;
}

.notfall__card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}

.notfall__icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 117, 111, 0.1);
  border-radius: 50%;
}

.notfall__content { flex: 1; min-width: 200px; }

.notfall__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.notfall__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-deep);
  margin-bottom: 0.4rem;
}

.notfall__text {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.notfall__btn { flex-shrink: 0; }

/* ---- Sections ---- */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-sand);
}

.section__header {
  margin-bottom: 3.5rem;
  max-width: 640px;
}
.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-deep);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ---- Leistungen Bubbles ---- */
.leistungen__hint {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: -2rem 0 1.5rem;
  font-style: italic;
  text-align: center;
}

.leistungen__interactive {
  padding: 0.5rem 0 2.5rem;
}

.leistungen__bubble-cloud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.leistungen__bubble {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  cursor: default;
  outline: none;
}

.leistungen__bubble-body {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, var(--color-sand) 55%, rgba(143, 168, 150, 0.14) 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 10px 28px rgba(74, 82, 77, 0.09),
    inset 0 4px 10px rgba(255, 255, 255, 0.85),
    inset 0 -6px 14px rgba(107, 130, 116, 0.07);
  color: var(--color-ocean);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition:
    width 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.leistungen__bubble-compact {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.1rem;
  text-align: center;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.leistungen__bubble-compact svg {
  width: 36px;
  height: 36px;
}

.leistungen__bubble-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.leistungen__bubble-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-deep);
  line-height: 1.25;
  max-width: 8.5rem;
}

.leistungen__bubble-expand {
  position: absolute;
  inset: 0;
  padding: 1.65rem 1.65rem;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    visibility 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.leistungen__bubble-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-deep);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.leistungen__bubble-claim {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-ocean);
  line-height: 1.5;
  margin-bottom: 0.9rem;
}

.leistungen__bubble-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.leistungen__bubble-list li {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text);
  padding-left: 0.9rem;
  position: relative;
}

.leistungen__bubble-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-teal);
}

/* Übergang & Social Media: mehr Platz nach unten */
.leistungen__bubble--room-bottom {
  min-height: 270px;
  padding-bottom: 1.5rem;
}

.leistungen__bubble--room-bottom .leistungen__bubble-expand {
  padding-bottom: 2.25rem;
}

.leistungen__bubble--room-bottom .leistungen__bubble-list {
  padding-bottom: 0.35rem;
}

.leistungen__hint--mobile {
  display: none;
}

/* Desktop: Hover-Blasen */
@media (hover: hover) and (min-width: 901px) {
  .leistungen__bubble:hover,
  .leistungen__bubble:focus-within {
    z-index: 20;
  }

  .leistungen__bubble:hover .leistungen__bubble-body,
  .leistungen__bubble:focus-within .leistungen__bubble-body {
    width: min(340px, 90vw);
    height: auto;
    min-height: 300px;
    border-radius: 2.25rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
      0 20px 50px rgba(74, 82, 77, 0.10),
      0 8px 24px rgba(74, 82, 77, 0.05),
      0 0 0 1px rgba(107, 130, 116, 0.08),
      inset 0 2px 12px rgba(255, 255, 255, 0.9);
    background: radial-gradient(ellipse at top, #ffffff 0%, var(--color-cream) 100%);
  }

  .leistungen__bubble--accent:hover .leistungen__bubble-body,
  .leistungen__bubble--accent:focus-within .leistungen__bubble-body {
    background: radial-gradient(ellipse at top, #ffffff 0%, var(--color-stone-light) 100%);
    box-shadow:
      0 20px 50px rgba(122, 117, 111, 0.11),
      0 8px 24px rgba(122, 117, 111, 0.05),
      0 0 0 1px rgba(122, 117, 111, 0.12);
  }

  .leistungen__bubble:hover .leistungen__bubble-compact,
  .leistungen__bubble:focus-within .leistungen__bubble-compact {
    opacity: 0;
    visibility: hidden;
    transition-delay: 0s;
  }

  .leistungen__bubble .leistungen__bubble-compact {
    transition-delay: 0.12s;
  }

  .leistungen__bubble:hover .leistungen__bubble-expand,
  .leistungen__bubble:focus-within .leistungen__bubble-expand {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.18s;
  }

  .leistungen__bubble:not(:hover):not(:focus-within) .leistungen__bubble-expand {
    transition-delay: 0s;
  }

  .leistungen__bubble--room-bottom:hover .leistungen__bubble-body,
  .leistungen__bubble--room-bottom:focus-within .leistungen__bubble-body {
    min-height: 330px;
  }

  .leistungen__bubble--room-bottom:nth-child(6):hover .leistungen__bubble-body,
  .leistungen__bubble--room-bottom:nth-child(6):focus-within .leistungen__bubble-body {
    top: auto;
    bottom: 0;
    transform: translate(-50%, 0);
  }
}

.leistungen__bubble:focus-visible .leistungen__bubble-body {
  outline: 3px solid var(--color-teal);
  outline-offset: 4px;
}

/* ---- Vorteile ---- */
.vorteile__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.vorteil-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.vorteil-card:hover { box-shadow: var(--shadow-md); }

.vorteil-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 130, 116, 0.08);
  border-radius: 50%;
  color: var(--color-ocean);
}

.vorteil-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-deep);
  margin-bottom: 0.75rem;
}

.vorteil-card__text {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ---- Über mich ---- */
.ueber__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.ueber__portrait {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.ueber__portrait-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-lg);
}

.ueber__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  justify-content: center;
}

.ueber__intro {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.ueber__traits {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.trait {
  padding: 1.25rem 1.5rem;
  background: var(--color-sand);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-teal);
}

.trait__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-deep);
  margin-bottom: 0.35rem;
}

.trait__text {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.ueber__closing {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-ocean);
  line-height: 1.6;
}

/* ---- Kompetenzen ---- */
.kompetenzen__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.kompetenz-card:nth-child(1) { grid-column: 1 / 3; }
.kompetenz-card:nth-child(2) { grid-column: 3 / 5; }
.kompetenz-card:nth-child(3) { grid-column: 5 / 7; }
.kompetenz-card:nth-child(4) { grid-column: 2 / 4; }
.kompetenz-card:nth-child(5) { grid-column: 4 / 6; }

.kompetenz-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: box-shadow var(--transition);
}
.kompetenz-card:hover { box-shadow: var(--shadow-sm); }

.kompetenz-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-ocean);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.kompetenz-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-deep);
  margin-bottom: 0.75rem;
}

.kompetenz-card ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
  line-height: 1.55;
}
.kompetenz-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-teal);
}

/* ---- Kontakt ---- */
.kontakt__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.kontakt__lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.kontakt__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.kontakt__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}
.kontakt__detail svg { color: var(--color-ocean); flex-shrink: 0; }
.kontakt__detail a { color: var(--color-ocean); }

.kontakt__detail address {
  font-style: normal;
  line-height: 1.5;
}

.kontakt__region {
  font-size: 0.9rem;
  color: var(--color-muted);
  padding: 1rem 1.25rem;
  background: var(--color-sand);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.kontakt__region strong { color: var(--color-deep); }

.form__hint a { color: var(--color-ocean); }

.form__feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.form__feedback--success {
  background: rgba(107, 130, 116, 0.1);
  border: 1.5px solid var(--color-teal);
  color: var(--color-deep);
}
.form__feedback--error {
  background: rgba(122, 117, 111, 0.1);
  border: 1.5px solid var(--color-accent);
  color: var(--color-deep);
}
.form__feedback--info {
  background: var(--color-sand);
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
}

.form__error {
  display: block;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-top: 0.35rem;
  min-height: 1em;
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.btn__text,
.btn__loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn__text[hidden],
.btn__loading[hidden] {
  display: none !important;
}

.btn__loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__success-state {
  text-align: center;
  padding: 2rem 1rem;
}
.form__success-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(107, 130, 116, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ocean);
  font-size: 1.75rem;
}

.kontakt__urgent {
  font-size: 0.9rem;
  color: var(--color-muted);
  padding: 1.25rem;
  background: rgba(122, 117, 111, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.65;
}
.kontakt__urgent strong { color: var(--color-deep); }
.kontakt__urgent em { color: var(--color-accent); font-style: normal; font-weight: 700; }

/* ---- Form ---- */
.kontakt__form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form__group {
  margin-bottom: 1.25rem;
}
.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-deep);
  margin-bottom: 0.4rem;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(143, 168, 150, 0.18);
}
.form__group textarea { resize: vertical; min-height: 120px; }

.form__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form__hint {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}

.form__success {
  text-align: center;
  padding: 2rem;
}
.form__success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.form__success h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-deep);
  margin-bottom: 0.5rem;
}
.form__success p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-deep);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  display: block;
}
.footer__tagline {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer__nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__nav a:hover { color: #fff; }

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ueber__inner,
  .kontakt__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .leistungen__hint--desktop { display: none; }
  .leistungen__hint--mobile { display: block; }

  .leistungen__bubble-cloud {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: none;
  }

  .leistungen__bubble {
    min-height: 0;
    display: block;
    width: 100%;
    cursor: pointer;
  }

  .leistungen__bubble-body {
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: var(--radius-md);
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
  }

  .leistungen__bubble-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-ocean), var(--color-teal));
    opacity: 0;
    transition: opacity var(--transition);
  }

  .leistungen__bubble--open .leistungen__bubble-body {
    box-shadow: var(--shadow-md);
    border-color: var(--color-teal);
  }

  .leistungen__bubble--open .leistungen__bubble-body::before {
    opacity: 1;
  }

  .leistungen__bubble--accent .leistungen__bubble-body {
    background: linear-gradient(135deg, rgba(143,168,150,0.05) 0%, var(--color-surface) 100%);
  }

  .leistungen__bubble-body::after {
    content: '';
    position: absolute;
    right: 1.35rem;
    top: 1.45rem;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-ocean);
    border-bottom: 2px solid var(--color-ocean);
    transform: rotate(45deg);
    transition: transform var(--transition);
    pointer-events: none;
  }

  .leistungen__bubble--open .leistungen__bubble-body::after {
    transform: rotate(-135deg);
    top: 1.55rem;
  }

  .leistungen__bubble-compact {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.25rem 3.5rem 1.25rem 1.75rem;
    opacity: 1;
    visibility: visible;
  }

  .leistungen__bubble-compact svg {
    display: none;
  }

  .leistungen__bubble-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-border);
    opacity: 1;
    min-width: 2.25rem;
    flex-shrink: 0;
    transition: color var(--transition);
  }

  .leistungen__bubble--open .leistungen__bubble-num {
    color: var(--color-teal);
  }

  .leistungen__bubble-label {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    flex: 1;
    line-height: 1.35;
  }

  .leistungen__bubble-expand {
    position: relative;
    max-height: 0;
    padding: 0 1.25rem;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .leistungen__bubble--open .leistungen__bubble-expand {
    max-height: 600px;
    padding: 0.5rem 1.85rem 2rem 1.85rem;
  }

  .leistungen__bubble-title {
    display: none;
  }

  .leistungen__bubble-claim {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
  }

  .leistungen__bubble-list li {
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 0.55rem 0 0.55rem 1.1rem;
  }

  .leistungen__bubble--room-bottom {
    min-height: 0;
    padding-bottom: 0;
  }

  .leistungen__bubble--room-bottom.leistungen__bubble--open .leistungen__bubble-expand {
    max-height: 720px;
    padding-bottom: 2.5rem;
  }

  .ueber__portrait {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }

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

  .kompetenz-card:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }

  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .nav__cta {
    margin-top: 0.5rem;
    text-align: center;
    display: block !important;
  }

  .nav__toggle--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle--open span:nth-child(2) { opacity: 0; }
  .nav__toggle--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero__inner { padding: 3rem 1.5rem 5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }

  .notfall__card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .notfall__btn { width: 100%; }

  .section { padding: 3.5rem 0; }


  .kontakt__form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .leistungen__bubble-compact {
    padding: 1.2rem 3.25rem 1.2rem 1.5rem;
  }
  .leistungen__bubble--open .leistungen__bubble-expand {
    padding: 0.5rem 1.5rem 1.75rem 1.5rem;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
  .leistungen__bubble-body { transition: none; }
  .leistungen__bubble:hover .leistungen__bubble-body,
  .leistungen__bubble--open .leistungen__bubble-body { transform: translate(-50%, -50%); }
}

/* ---- Legal Pages ---- */
.legal-page .header {
  position: sticky;
}

.legal {
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

.legal__inner {
  max-width: 720px;
}

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--color-deep);
  margin-bottom: 0.5rem;
}

.legal__updated {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

.legal__notice {
  background: rgba(122, 117, 111, 0.1);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
}

.legal__section {
  margin-bottom: 2rem;
}

.legal__section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-deep);
  margin-bottom: 0.75rem;
}

.legal__section p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal__section a {
  color: var(--color-ocean);
  word-break: break-word;
}

.legal__list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal__list li {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.legal__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ocean);
}
