/* Minimal, modernes, responsives CSS */
:root{
  --bg:#0b1e2d;
  --fg:#f4f7fb;
  --muted:#b9c7d6;
  --accent:#2ca6ff;
  --card:#12283a;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;color:var(--fg);background:linear-gradient(180deg,#0b1e2d 0%, #0f2436 100%)}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px;margin:0 auto;padding:20px}
header{position:sticky;top:0;background:rgba(11,30,45,.85);backdrop-filter:saturate(160%) blur(6px);border-bottom:1px solid rgba(255,255,255,.08);z-index:10}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;letter-spacing:.3px}
.brand .logo{position:relative;width:44px;height:44px;border-radius:50%;background:radial-gradient(120% 120% at 30% 30%, #ffd6a5 0%, #ffab91 55%, #ff8a65 100%);box-shadow:0 4px 16px rgba(255,138,101,.35);overflow:hidden}
/* Decorative fish/rod graphic inside the sunball */
.brand .logo::after{content:"";position:absolute;inset:4px;background:url('../img/rutefang.png') center/contain no-repeat;filter:brightness(1.05)}
nav ul{display:flex;gap:14px;list-style:none;margin:0;padding:10px 0}
nav a{display:inline-block;padding:10px 12px;border-radius:8px}
nav a.active, nav a:hover{background:rgba(255,255,255,.06)}
/* Mobile menu toggle */
.menu-toggle{display:none;appearance:none;background:transparent;border:1px solid rgba(255,255,255,.25);color:#eaf6ff;border-radius:8px;padding:8px 10px;line-height:1;font-weight:700}
.menu-toggle:focus{outline:2px solid var(--accent);outline-offset:2px}
.hero{padding:20px 0 24px}
.hero h1{font-size: clamp(28px,5vw,40px);margin:0 0 8px}
.hero .hero-inline{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hero .hero-inline h1{margin:0}
.hero .hero-thumb{height:clamp(28px,6vw,44px);width:auto;object-fit:contain;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.hero .hero-thumb--original{height:auto;width:auto;object-fit:contain;border-radius:0;box-shadow:none}
/* Align title top with image in downloads hero */
.downloads-hero .hero-inline{align-items:flex-start}
@media (max-width:800px){
  .nav{flex-wrap:wrap}
  .menu-toggle{display:inline-block}
  nav{width:100%}
  nav ul{display:none;flex-direction:column;gap:0;padding:4px 0}
.nav.open nav ul{display:flex}
}
.hero h2{font-size: clamp(20px,4.5vw,28px);margin:0 0 10px}
.hero p{color:var(--muted);margin:0 0 20px}
.hero.hero-bg{position:relative;isolation:isolate;border-radius:0 0 14px 14px;overflow:hidden;padding:56px 20px 24px;min-height:240px;background:color-mix(in srgb, #000 20%, transparent);margin-top:0}
.hero.hero-bg{padding-top:32px}
/* Reduce container top padding directly under sticky header */
header + .container{padding-top:8px}
.hero.hero-bg::before{content:"";position:absolute;inset:0;background:url('../img/amphibienschutz.webp') center top/cover no-repeat;transform:scale(1.02);z-index:-2}
.hero.hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.45) 100%);z-index:-1}
.hero.hero-bg h1,.hero.hero-bg p{color:#f7fbff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.card{grid-column:span 6;background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:18px}
.card h3{margin:0 0 8px}
.card p{color:var(--muted)}
.card .card-icon{display:block;margin-left:auto;max-width:160px;height:auto;filter:drop-shadow(0 2px 6px rgba(0,0,0,.25))}
.inline-row{display:flex;align-items:center;gap:12px}
.inline-row .card-icon{margin-left:8px;max-width:none;max-height:28px;height:auto}
.card.card-split{display:flex;align-items:stretch;gap:16px}
.card.card-split .card-content{flex:1;min-width:0}
.card-media{flex:0 0 42%;max-width:42%;display:flex;align-items:center;justify-content:center}
.card-media img{width:100%;height:100%;object-fit:cover;border-radius:10px}
/* Logo/Badge variant: keep aspect, make it larger and not cropped */
.card-media .logo-fit{width:100%;height:auto;object-fit:contain;border-radius:0}
/* Smaller variant for logos/badges where needed */
.card-media .logo-fit.logo-small{width:auto;max-width:260px;max-height:140px;height:auto}
/* Specific smaller size for petri image */
.card-media .petri-small{width:auto;max-width:160px;max-height:90px;height:auto}
/* Color tint for petri image (adjust hue/saturation/brightness as needed) */
.tint-petri{filter:hue-rotate(185deg) saturate(1.15) brightness(0.95)}
/* Make dark icons appear light/white on dark background */
.tone-white{filter:invert(1) brightness(1.1)}
/* Masked icon for petri to allow solid color without black output */
.logo-mask{width:220px;height:140px}
.logo-mask.petri{background:var(--accent);-webkit-mask: url('../img/petri.png') center/contain no-repeat;mask: url('../img/petri.png') center/contain no-repeat}
/* Show left side of the image when media is on the right */
.card-media.right img{object-position:left center}
@media (max-width:800px){.card{grid-column:span 12}}
@media (max-width:800px){
  .card.card-split{flex-direction:column}
  .card-media{flex:0 0 auto;max-width:100%}
  .card-media img{height:auto}
}
.small{font-size:.9rem}

/* Additional mobile refinements */
@media (max-width:600px){
  .container{padding:14px}
  .hero{padding:14px 0 18px}
  .hero.hero-bg{padding-top:20px;min-height:160px}
  .hero.hero-bg::before{background-image:url('../img/header_mobil.webp');background-position:center 25%;transform:none}
  .hero.hero-bg::after{background:linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 100%)}
  nav ul li a{padding:12px 10px}
  .card{padding:14px}
  .inline-row{gap:8px}
  .badge{font-size:.75rem;padding:2px 6px}
  .card-media .logo-fit.logo-small{max-width:220px;max-height:120px}
  .card-media .petri-small{max-width:140px;max-height:80px}
  footer .footer-grid{gap:12px}
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important;transition:none !important;scroll-behavior:auto}
}
.cta{display:inline-flex;align-items:center;gap:10px;background:var(--accent);color:#001b2e;border:none;border-radius:10px;padding:10px 14px;font-weight:600;box-shadow:0 6px 18px rgba(44,166,255,.35)}
section{margin:26px 0}
.list{display:grid;gap:10px;list-style:none;padding:0;margin:0}
.list li{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:10px;padding:12px}
.badge{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:.8rem;font-weight:700;letter-spacing:.2px;vertical-align:middle}
.badge--angeln{background:rgba(44,166,255,.15);color:#7cc6ff;border:1px solid rgba(44,166,255,.35)}
.badge--einsatz{background:rgba(255,193,7,.15);color:#ffd070;border:1px solid rgba(255,193,7,.35)}
.badge--jugend{background:rgba(76,175,80,.18);color:#9be19e;border:1px solid rgba(76,175,80,.35)}
.badge--senior{background:rgba(156,39,176,.18);color:#d79be1;border:1px solid rgba(156,39,176,.35)}
.badge--event{background:rgba(255,87,34,.18);color:#ffb199;border:1px solid rgba(255,87,34,.35)}
.badge--info{background:rgba(158,158,158,.18);color:#ddd;border:1px solid rgba(158,158,158,.35)}
.badge--service{background:rgba(0,150,136,.18);color:#7adbd1;border:1px solid rgba(0,150,136,.35)}
.badge--lehrgang{background:rgba(33,150,243,.18);color:#a3d3ff;border:1px solid rgba(33,150,243,.35)}
.note{color:var(--muted);font-size:.95rem}
footer{margin-top:40px;border-top:1px solid rgba(255,255,255,.08);background:rgba(11,30,45,.8)}
footer .footer-grid{display:grid;gap:16px;grid-template-columns:repeat(12,1fr);padding:20px 0}
footer .col{grid-column:span 4}
@media (max-width:900px){footer .col{grid-column:span 12}}
.footer-grid{justify-items:start}
@media (max-width:900px){
  footer .footer-grid{justify-items:center;text-align:center}
}
.contact-card{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:12px;padding:14px}
.contact-card h4{margin:0 0 8px}
.contact-card p{margin:4px 0;color:var(--muted)}
footer .footer-bottom{border-top:1px solid rgba(255,255,255,.08);margin-top:10px;padding:10px 0;color:var(--muted);font-size:.9rem;text-align:center}
.embed{aspect-ratio:4/3;background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:12px;overflow:hidden}
.embed.pdf{aspect-ratio:auto;height:85vh;max-height:calc(100vh - 140px)}
.embed iframe, .embed object{width:100%;height:100%;border:0}
.small{font-size:.9rem}

/* Modal */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:center;justify-content:center;padding:16px;z-index:100}
.modal.open{display:flex}
.modal-dialog{background:var(--card);border:1px solid rgba(255,255,255,.1);border-radius:12px;max-width:820px;width:100%;box-shadow:0 20px 50px rgba(0,0,0,.45);overflow:auto;max-height:90vh}
.modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
.modal-title{margin:0;font-size:1.2rem}
.modal-body{padding:16px}
.modal-close{appearance:none;background:transparent;border:1px solid rgba(255,255,255,.25);color:#eaf6ff;border-radius:8px;padding:6px 10px;cursor:pointer}
@media (max-width:600px){.modal-body{padding:12px}}
