@font-face {
    font-family: 'Ledger';
    src: url('./assets/fonts/Ledger/Ledger-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
/* Basis-Styles */
body {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 18px;
  font-weight: 300;
}

h1 {
  font-family: 'Ledger', serif !important;
  font-size: 48px !important;
  font-weight: 400 !important;
}

h2 {
  font-family: 'Ledger', serif !important;
  font-size: 36px !important;
  font-weight: 400 !important;
}

/* Intro-Animation */
#intro-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f9f8f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Ledger', serif;
  font-size: 48px;
  color: #1fa59f;
  text-align: center;
  transition: all 1s ease;
  padding: 1rem;
  box-sizing: border-box;
}

#intro-animation span {
  opacity: 0;
  display: inline-block;
  animation: fadeIn 0.05s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.fade-out {
  opacity: 0;
  transform: translateY(-150px);
  pointer-events: none;
}
/* Lesbarkeit langer Überschriften in Karten */
.card h2,
.h-title {
  line-height: 1.25;
  letter-spacing: .2px;
  hyphens: manual;         /* keine automatische Silbentrennung */
  word-break: keep-all;    /* Wörter zusammenhalten */
  text-wrap: balance;      /* schönere Zeilenaufteilung (moderne Browser) */
}
@supports not (text-wrap: balance) {
  .card h2, .h-title { /* Fallback: etwas kleiner, damit es eleganter umbricht */
    font-size: clamp(1.05rem, 0.8vw + 1rem, 1.25rem);
  }
}




/* =========================================
   2) NAV Desktop (aus header.php: nav.md:flex)
   – nur dezente Hover-Farbe
   ========================================= */
@media (min-width: 768px){
  header nav a {
    color:#1b2730;
    text-decoration:none;
  }
  header nav a:hover { color: var(--teal-800); }
}

/* =========================================
   3) MOBILES MENÜ (#mobile-menu)
   – untereinander wie <ul><li>, mit Trennern
   – Anzeigen via Klasse .menu-open am <header>
     (oder via .open am #mobile-menu)
   ========================================= */
@media (max-width: 767.98px){

  /* standardmäßig zu */
  header #mobile-menu{ display:none; }

  /* zeigen, wenn <header class="... menu-open">,
     ODER wenn direkt am Menü .open gesetzt wird */
  header.menu-open #mobile-menu,
  #mobile-menu.open{
    display:block;
  }

  /* „Liste“ untereinander */
  #mobile-menu {
    background:#fff;
    padding: 8px 12px 12px;
    border-top: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    border-radius: 10px; /* optisch wie beim Referenzbeispiel */
  }

  #mobile-menu a{
    display:block;
    width:100%;
    padding:14px 14px;
    margin:0;
    text-decoration:none;
    color:#1b2730;
    font-size:1.125rem;   /* ~18px */
    line-height:1.35;
    border-bottom:1px solid rgba(0,0,0,.08);
    border-radius: 8px;   /* damit :hover eine weiche Fläche hat */
  }
  #mobile-menu a:last-child{ border-bottom:none; }

  /* Hover/Active */
  #mobile-menu a:hover,
  #mobile-menu a:focus{
    background: rgba(14,116,112,.08);
    color: var(--teal-800);
  }
}

/* =========================================
   4) Headlines mobil kleiner + kein Abschneiden
   (gilt global; verbessert v. a. kontakt.php)
   ========================================= */
@media (max-width: 767.98px){
  h1{
    font-size: clamp(28px, 8vw, 44px);
    line-height: 1.15;
    overflow: visible;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    margin: .2em 0 .6em;
  }
  h2{
    font-size: clamp(20px, 5.6vw, 30px);
    line-height: 1.25;
  }
  /* Falls irgendein Container fixe Höhe hat – aufbrechen */
  .hero, .page-hero, .kontakt-hero{
    height:auto !important;
    min-height:unset !important;
    overflow:visible !important;
  }
}