/* =================================================================
   das-energieberater-team.de · Globales Stylesheet
   © Dipl.-Ing. Rolf Krause · Alle Rechte vorbehalten
   Mobile-First, Brand-Farben #1B4B82 / #0D3A5C / #00A0D2
   ================================================================= */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1E293B;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }

/* === TOKENS (Brand: energieberatung rolf krause) === */
:root {
  --primary: #1B4B82;
  --primary-dark: #0D3A5C;
  --accent: #00A0D2;
  --accent-light: #00C5E5;
  --success: #00A651;
  --warning: #FCB813;
  --danger: #EE1C25;
  --text: #1E293B;
  --text-light: #64748B;
  --bg-light: #F5F7FA;
  --border: #E2E8F0;
  --max-width: 1200px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.12);
  --transition-fast: 0.12s ease;
  --transition: 0.2s ease;
  --transition-slow: 0.4s cubic-bezier(.22,.68,0,.98);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  color: var(--primary-dark);
  line-height: 1.25;
  font-weight: 700;
  margin: 1.5em 0 0.6em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.0625rem; }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.5em; }
li { margin: 0.25em 0; }
a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.lead { font-size: 1.125rem; color: var(--text-light); margin-bottom: 1.5em; }

/* === LAYOUT === */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* === HEADER === */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--primary-dark);
  font-weight: 700;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: -0.05em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-size: 0.95rem; font-weight: 700; }
.logo-sub { font-size: 0.7rem; color: var(--text-light); font-weight: 400; }

/* === NAV === */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent; border: none;
  padding: 0.5rem; cursor: pointer;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--primary-dark);
  transition: all 0.2s;
}
.main-nav { display: none; }
.main-nav.is-open {
  display: block;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.25rem;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}
.nav-top { list-style: none; padding: 0; margin: 0; }
.nav-item { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.nav-item:last-child { border-bottom: none; }
.nav-link {
  display: block;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 0.5rem 0;
  text-decoration: none;
}
.nav-item.is-highlight .nav-link {
  color: var(--primary-dark);
}
.nav-item.is-active > .nav-link {
  color: var(--accent);
  background: rgba(0,160,210,.06);
  border-radius: 6px;
}
.nav-sub a[aria-current="page"] {
  color: var(--accent) !important;
  font-weight: 600;
}
.nav-sub {
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0.25rem 0 0;
}
.nav-sub li { padding: 0.25rem 0; }
.nav-sub a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 400;
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-nav {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0;
  }
  .nav-top {
    display: flex;
    gap: 0.5rem;
  }
  .nav-item {
    border-bottom: none;
    position: relative;
    padding: 0;
  }
  .nav-link {
    padding: 1.5rem 0.75rem;
    font-size: 0.92rem;
  }
  .nav-sub {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 240px;
    padding: 0.5rem 0;
  }
  .nav-item:hover .nav-sub,
  .nav-item:focus-within .nav-sub { display: block; }
  .nav-sub li { padding: 0; }
  .nav-sub a {
    display: block;
    padding: 0.5rem 1rem;
  }
  .nav-sub a:hover { background: var(--bg-light); }
}

/* === BREADCRUMB === */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* === FAQ === */
.faq-section {
  margin: 3rem 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  display: inline;
  margin: 0;
  font-size: 1.0625rem;
  color: var(--primary-dark);
}
.faq-icon {
  position: absolute;
  right: 0; top: 50%;
  width: 20px; height: 20px;
  margin-top: -10px;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute;
  background: var(--primary);
  transition: transform 0.2s;
}
.faq-icon::before {
  top: 9px; left: 0;
  width: 20px; height: 2px;
}
.faq-icon::after {
  top: 0; left: 9px;
  width: 2px; height: 20px;
}
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-answer { padding: 1rem 0 0.5rem; }
.faq-answer p { margin: 0 0 0.75em; }

/* === BUTTONS === */

/* === CTA === */
.cta-block {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  margin: 3rem 0;
}
.cta-block h2 { margin-top: 0; }

/* === FOOTER === */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.25rem 1rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}
.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 0.25rem 0; }
.footer-col a { color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* === TOOL-PAGE LAYOUT === */
.tool-page { display: grid; gap: 1.5rem; }
.tool-header { margin-bottom: 1rem; }
.tool-content { margin: 1.5rem 0; }
.tool-embed {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
}
.tool-info {
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-light);
}

/* === GEBÄUDESTECKBRIEF === */
.projekt-status {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}
.projekt-status h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.projekt-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.projekt-actions button {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}
.projekt-actions button:hover { background: var(--bg-light); }

/* === MEDIA: PRINT === */
@media print {
  .site-header, .site-footer, .menu-toggle { display: none; }
  main { padding: 0; max-width: none; }
}

/* === SPRUNG-BUTTONS (Tool-Seiten) === */
.tool-jumplinks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.tool-jumplinks a {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.tool-jumplinks a:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}



/* === EINHEITLICHE BUTTONS (gleiche Groesse wie Jumplinks) === */
.btn, .btn-primary {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover, .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* === BUTTONS FINAL === */
.cta-block .cta-action {
  margin: 1rem 0 0;
}
.cta-block a.btn,
.cta-block a.btn-primary,
section.cta-block a.btn {
  display: inline-block !important;
  width: auto !important;
  max-width: fit-content !important;
  padding: 0.5rem 1.1rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #fff !important;
  background: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  text-align: center !important;
  white-space: nowrap !important;
}
section.cta-block a.btn:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* === U-WERT RECHNER HEADER OVERRIDE === */
.uwert-app .hdr {
  display: flex !important;
  align-items: center !important;
  min-height: 64px;
}
.uwert-app .hdr-text {
  flex: 1;
  display: flex;
  align-items: center;
}
.uwert-app .hdr-text h2 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #9FDFFF !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === DESKTOP-NAV: Submenu bleibt offen mit Hover-Bruecke === */
@media (min-width: 1024px) {
  .nav-item {
    position: relative;
  }
  .nav-sub {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 240px;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 200;
  }
  /* Unsichtbare Bruecke damit Maus zum Submenu kommt ohne hover zu verlieren */
  .nav-sub::before {
    content: "";
    position: absolute;
    top: -12px; left: 0;
    width: 100%; height: 12px;
    background: transparent;
  }
  .nav-item:hover .nav-sub,
  .nav-item:focus-within .nav-sub {
    display: block;
  }
  .nav-link::after {
    display: none !important;
  }
}

/* ============================================================ */
/* === TOP-STRIP (Telefon/E-Mail über dem Header) === */
/* ============================================================ */

.top-strip {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.95);
  font-size: 0.8125rem;
}
.top-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}
.top-strip-link {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}
.top-strip-link:hover {
  color: #fff;
  text-decoration: none;
}
.top-strip-divider {
  color: rgba(255,255,255,0.5);
}

@media (max-width: 600px) {
  .top-strip-inner {
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  .top-strip-divider {
    display: none;
  }
}

/* ============================================================ */
/* === LOGO IM HEADER === */
/* ============================================================ */

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
}
.logo-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .logo-img { width: 40px; height: 40px; }
  .logo-main { font-size: 0.92rem; }
  .logo-sub { display: none; }
}

@media (max-width: 480px) {
  .logo-main { font-size: 0.85rem; }
}

/* ============================================================ */
/* === FOOTER mit Logo + Kontakt + Qualifikationen === */
/* ============================================================ */

.footer-inner {
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}
.footer-brand strong {
  color: #fff;
  font-size: 0.95rem;
}
.footer-contact a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.footer-contact a:hover {
  color: #fff;
}
.footer-qual {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}
.footer-qual li {
  padding: 0.2rem 0;
}

/* ============================================================ */
/* === ÜBER-UNS-SEITE: Hero mit Portrait + Quick-Facts === */
/* ============================================================ */

.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

@media (min-width: 768px) {
  .about-hero {
    grid-template-columns: 300px 1fr;
  }
}

.about-portrait {
  display: flex;
  justify-content: center;
}

.portrait-large {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.about-intro h2 {
  margin-top: 0;
}

.quick-facts {
  list-style: none;
  padding: 1rem;
  margin: 1rem 0 0;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.quick-facts li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(226,232,240,0.5);
}
.quick-facts li:last-child {
  border-bottom: none;
}
.quick-facts strong {
  color: var(--primary-dark);
  margin-right: 0.5rem;
}

/* === CTA mit Portrait === */
.cta-with-portrait {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 600px) {
  .cta-with-portrait {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}
.cta-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 4px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.cta-with-portrait > div {
  flex: 1;
}
.cta-with-portrait h2 {
  margin-top: 0;
}
.cta-action {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* === Kontakt-Seite === */
.kontakt-optionen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 600px) {
  .kontakt-optionen { grid-template-columns: 1fr 1fr; }
}
.kontakt-option {
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.kontakt-option h3 {
  margin-top: 0;
}

/* === AUTHOR HOVER-CARD OVERRIDE (hoher Priorität) === */
.author-wrap:hover .author-box,
.author-box:hover,
.author-wrap.is-open .author-box {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Box sollte nicht in <p> gequetscht werden */
.meta .author-wrap {
  display: inline-block;
}

/* ============================================================ */
/* === ANIMATIONS LIBRARY (Design-System) === */
/* ============================================================ */

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in-scale { from { opacity: 0; transform: scale(0.92) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.anim-pulse { animation: pulse-dot 2s infinite; }
.anim-float { animation: float-y 3s ease-in-out infinite; }
.fade-up    { animation: fade-up 0.7s cubic-bezier(.22,.68,0,.98) forwards; }
.fade-up-d1 { animation: fade-up 0.7s cubic-bezier(.22,.68,0,.98) 0.10s forwards; opacity: 0; }
.fade-up-d2 { animation: fade-up 0.7s cubic-bezier(.22,.68,0,.98) 0.20s forwards; opacity: 0; }
.fade-up-d3 { animation: fade-up 0.7s cubic-bezier(.22,.68,0,.98) 0.30s forwards; opacity: 0; }
.fade-up-d4 { animation: fade-up 0.7s cubic-bezier(.22,.68,0,.98) 0.40s forwards; opacity: 0; }
.fade-up-d5 { animation: fade-up 0.7s cubic-bezier(.22,.68,0,.98) 0.50s forwards; opacity: 0; }
.fade-up-d6 { animation: fade-up 0.7s cubic-bezier(.22,.68,0,.98) 0.60s forwards; opacity: 0; }
.anim-scale-in { animation: fade-in-scale 0.6s ease-out forwards; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .anim-pulse, .anim-float, .fade-up, .fade-up-d1, .fade-up-d2, .fade-up-d3,
  .fade-up-d4, .fade-up-d5, .fade-up-d6, .anim-scale-in {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* === GRADIENTS === */
.bg-brand-gradient { background: linear-gradient(135deg, #1B4B82 0%, #00A0D2 100%); }
.bg-soft-gradient { background: linear-gradient(135deg, #F5F7FA 0%, #E6F1FB 100%); }

/* === STATUS-LIVE === */
.status-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--accent); }
.status-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* === CARD-HOVER === */
.card { transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* === TRUST-BADGE === */
.trust-badge {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 1rem; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  font-size: 0.8125rem; color: var(--text-light);
}
.trust-badge strong { font-size: 1.5rem; color: var(--primary-dark); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE (Smartphone + Tablet)
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  main { padding: 1.5rem 1rem 3rem; }
}

/* ── Smartphone (≤768px) ── */
@media (max-width: 768px) {
  :root { --max-width: 100%; }
  body { font-size: 15px; }
  main { padding: 1rem 0.75rem 2rem; }

  /* Top-Strip: kompakt */
  .top-strip-inner { font-size: 11px; gap: 0.4rem; justify-content: center; padding: 0.3rem 0.75rem; }
  .top-strip-divider { display: none; }
  .top-strip-link span[aria-hidden] { display: none; }

  /* Header: kompakt */
  .header-inner { padding: 0.5rem 0.75rem; }
  .logo-img { width: 36px; height: 36px; }
  .logo-main { font-size: 0.85rem; }

  /* Mobile Nav: fullscreen overlay */
  .main-nav.is-open {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 100;
    padding: 60px 24px 24px;
    overflow-y: auto;
    animation: navSlideIn 0.25s ease-out;
    box-shadow: var(--shadow-md);
  }
  @keyframes navSlideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
  .main-nav.is-open .nav-top { gap: 0; }
  .main-nav.is-open .nav-link {
    font-size: 18px;
    padding: 14px 0;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.is-open .nav-sub {
    padding-left: 16px;
    border-left: 2px solid var(--accent);
  }
  .main-nav.is-open .nav-sub a { font-size: 14px; padding: 8px 0; color: var(--text); }

  /* Breadcrumb */
  .breadcrumb { font-size: 12px; padding: 0 0.75rem; }

  /* Footer */
  .site-footer { padding: 2rem 1rem; }
  .footer-inner { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .footer-col h3 { font-size: 14px; }
}

/* ── Kleines Smartphone (≤480px) ── */
@media (max-width: 480px) {
  .top-strip { display: none; }
  .header-inner { padding: 0.4rem 0.5rem; }
  .logo-main { font-size: 0.78rem; letter-spacing: -0.3px; }
  main { padding: 0.75rem 0.5rem 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE OPTIMIERUNG (≤768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Header: Touch-freundliche Größen */
  .menu-toggle { padding: 0.75rem; }
  .menu-toggle span { width: 26px; height: 2.5px; }
  .nav-link { padding: 0.75rem 0; font-size: 16px; min-height: 44px; display: flex; align-items: center; }
  .nav-sub a { padding: 0.5rem 0; font-size: 15px; min-height: 40px; display: flex; align-items: center; }

  /* Top-Strip: nur Telefon + Login zeigen */
  .top-strip-inner { gap: 0.5rem; font-size: 11px; }
  .top-strip-inner a[href^="mailto"] { display: none; }

  /* Logo kompakter */
  .logo-img { width: 36px; height: 36px; }
  .logo-sub { display: none; }

  /* Breadcrumbs: wrap */
  .breadcrumb { font-size: 12px; flex-wrap: wrap; }

  /* Tool-Seiten: Mobile-Hinweis */
  .tool-mobile-hint {
    display: block;
    background: linear-gradient(135deg, #E3F2FD, #F0F7FF);
    border: 1px solid #90CAF9;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 8px 12px;
    font-size: 13px;
    color: #1B4B82;
    text-align: center;
    line-height: 1.5;
  }
  .tool-mobile-hint strong { color: #0D3A5C; }
}

@media (min-width: 769px) {
  .tool-mobile-hint { display: none; }
}

/* ── Safe-Area für Notch-Phones ── */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .main-nav.is-open { padding-bottom: env(safe-area-inset-bottom); }
}

/* ── Touch: besseres Scrolling ── */
@media (hover: none) and (pointer: coarse) {
  /* Kein Hover-Effekt auf Touch-Geräten */
  .nav-link:hover { background: none; }
  .tool-chip:hover { transform: none; }
  /* Smooth scrolling */
  .tool-wrapper { -webkit-overflow-scrolling: touch; }
  /* Tap-Highlight */
  a, button { -webkit-tap-highlight-color: rgba(0,160,210,.15); }
}
