:root{
  --tile-w: 320px;
  --tile-h: 200px;

  --bg:#071b26;
  --fg:#0b3a53;
  --text:#0b1220;
  --muted:#5b6676;
  --card:#ffffff;
  --line:#e6e8ee;
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --max: 1040px;

  /* Brand palette */
  --blue:#0b3a53;
  --blue-2:#0f5c86;
  --orange:#f08a24;      /* complementary accent */
  --orange-2:#ffb366;    /* soft highlight */
  --tint:#fff7ef;        /* warm background tint */
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:#f7f8fb;
  line-height:1.5;
}

a{color:var(--accent); text-underline-offset: 3px;}
a:hover{opacity:.9}

.container{
  width:min(var(--max), calc(100% - 2rem));
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:1rem; top:1rem; width:auto; height:auto;
  padding:.6rem .9rem; background:#fff; border-radius:12px;
  box-shadow:var(--shadow);
  z-index:9999;
}

.header{
  position:sticky;
  top:0;
  background:rgba(247,248,251,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  z-index:1000;
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.9rem 0;
}

.brand{display:flex; align-items:center; gap:.75rem;}
.brand__mark{
  width:40px; height:40px;
  display:grid; place-items:center;
  background: #eaf2f6;
  border:1px solid #d8e6ee;
  border-radius:14px;
  font-size:18px;
}
.brand__title{font-weight:750; letter-spacing:.2px}
.brand__subtitle{color:var(--muted); font-size:.95rem}

.nav{
  display:flex;
  align-items:center;
  gap:1rem;
}
.nav a{font-weight:600; text-decoration:none; padding:.4rem .55rem; border-radius:12px}
.nav a:hover{background:#eef2f7}
.nav__cta{
  background: var(--accent);
  color:#fff !important;
  padding:.55rem .85rem !important;
  border-radius:14px;
}
.nav__cta:hover{background:#083044}

.nav-toggle{
  display:none;
  width:42px; height:42px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  background:#1b2a3b;
  margin:4px auto;
  border-radius:99px;
}

.hero{
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 55%, #f7f8fb 100%);
  padding: 3.2rem 0 2.4rem;
}
.hero__inner h1{
  margin:0 0 .6rem;
  font-size: clamp(1.65rem, 2.2vw, 2.4rem);
  letter-spacing:.2px;
}
.lead{margin:0 0 1.6rem; color:var(--muted); max-width: 60ch}

.hero__cards{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:1rem;
}

.card{
  grid-column: span 4;
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1rem;
}
.card h2{margin:.1rem 0 .55rem; font-size:1.15rem}
.card__line{margin:0}
.hint{margin:.75rem 0 0; color:var(--muted); font-size:.95rem}
.muted{color:var(--muted)}

.actions{
  margin-top:.85rem;
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
}
.button{
  appearance:none;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  padding:.55rem .85rem;
  border-radius:14px;
  font-weight:650;
  text-decoration:none;
  cursor:pointer;
}
.button:hover{box-shadow: 0 10px 22px rgba(0,0,0,.06)}
.button--ghost{background:#f7f8fb}

.hero__footer{
  margin-top:1.3rem;
  font-size:.95rem;
}

.info{
  padding: 1.2rem 0 3.2rem;
}
.info__inner h2{margin:0 0 .35rem}
.chips{
  list-style:none;
  padding:0; margin:1rem 0 0;
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}
.chips li{
  padding:.45rem .7rem;
  border-radius: 999px;
  border:1px solid rgba(15,92,134,.22);
  background: rgba(15,92,134,.08);
  font-weight:600;
  font-size:.95rem;
}

.footer{
  border-top:1px solid var(--line);
  background:#fff;
  padding: 1.2rem 0;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  color:#1b2a3b;
}
.footer__links{display:flex; gap:1rem; align-items:center}
.footer__links a{font-weight:650; text-decoration:none}
.footer__links a:hover{text-decoration:underline}

@media (max-width: 900px){
  .card{grid-column: span 6;}
}
@media (max-width: 680px){
  .nav{display:none}
  .nav-toggle{display:block}
  .card{grid-column: span 12;}
  .hero{padding:2.4rem 0 1.8rem}
}

body.nav-open .nav{
  display:flex;
  position:fixed;
  top:70px;
  left:1rem;
  right:1rem;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:.75rem;
  flex-direction:column;
  align-items:flex-start;
}


.brand__logo{
  width:44px;
  height:44px;
  object-fit:contain;
  background:linear-gradient(180deg, #ffffff 0%, rgba(240,138,36,.10) 100%);
  border:1px solid var(--line);
  border-radius:14px;
  padding:6px;
}


/* === Notdienst-Hervorhebung === */
.emergency{
  color:#b00020;
  font-weight:800;
}
.emergency a{
  color:#b00020;
  font-weight:800;
  text-decoration:underline;
}
.emergency-box{
  margin-top:.6rem;
  padding:.6rem .75rem;
  border-radius:12px;
  border:2px solid #b00020;
  background:#fff5f6;
  display:flex;
  gap:.6rem;
  align-items:flex-start;
}
.emergency-box .icon{
  font-size:1.3rem;
  line-height:1.3;
}


/* === Color accents === */
.header{
  border-bottom:1px solid var(--line);
}
.nav__cta{
  background: linear-gradient(180deg, var(--orange) 0%, #e07008 100%);
  color:#1a1208 !important;
  border: 1px solid rgba(0,0,0,.05);
}
.nav__cta:hover{
  filter: brightness(.97);
}

.hero{
  background:
    radial-gradient(1100px 420px at 15% 0%, rgba(240,138,36,.20) 0%, rgba(240,138,36,0) 55%),
    radial-gradient(1100px 420px at 85% 0%, rgba(15,92,134,.20) 0%, rgba(15,92,134,0) 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 55%, #f7f8fb 100%);
}

.card{
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 35%, var(--orange) 100%);
}

.button{
  border:1px solid var(--line);
  background:#fff;
}
.button--primary{
  background: linear-gradient(180deg, var(--orange) 0%, #e07008 100%);
  border: 1px solid rgba(0,0,0,.06);
  color:#1a1208;
}
.button--primary:hover{ filter:brightness(.97); }

.button--ghost{
  background: var(--tint);
  border-color: rgba(240,138,36,.25);
}

.chips li{
  border-color: rgba(15,92,134,.18);
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}
/* Make emergency box consistent with orange/blue while keeping red meaning */
.emergency-box{
  box-shadow: 0 10px 22px rgba(176,0,32,.08);
}





/* === Tiled logo watermark background === */
.hero{
  background:
    radial-gradient(1100px 420px at 15% 0%, rgba(240,138,36,.20) 0%, rgba(240,138,36,0) 55%),
    radial-gradient(1100px 420px at 85% 0%, rgba(15,92,134,.20) 0%, rgba(15,92,134,0) 55%),
    url("logo-animals-tile.png") repeat,
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 55%, #f7f8fb 100%);
  background-size: auto, auto, var(--tile-w) var(--tile-h), auto;
}


/* Tile sizing overrides */
@media (min-width: 980px){
  :root{
    --tile-w: 520px;
    --tile-h: 320px;
  }
}


/* === Contact priority: Telefon & WhatsApp === */
.contact-primary{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  margin:.5rem 0 .75rem;
}
.contact-primary a{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.55rem .8rem;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.06);
}
.contact-primary a.phone{
  background: linear-gradient(180deg, var(--orange) 0%, #e07008 100%);
  color:#1a1208;
}
.contact-primary a.whatsapp{
  background:#25D366;
  color:#0b2e18;
}
.contact-primary a:hover{ filter:brightness(.97); }

.contact-secondary{
  color:var(--muted);
  font-size:.95rem;
}


/* Accordion (Leistungen) */
.accordion{
  margin-top: .8rem;
}
.accordion details{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:.65rem .85rem;
  margin-bottom:.65rem;
  background:#fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.04);
}
.accordion summary{
  cursor:pointer;
  font-weight:750;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.accordion summary::-webkit-details-marker{ display:none; }
.accordion summary::after{
  content:"+";
  font-weight:900;
  color: var(--blue);
}
.accordion details[open] summary::after{
  content:"–";
}
.accordion-content{
  margin-top:.7rem;
  color:var(--text);
}
.accordion-content p{
  margin:.55rem 0;
}


/* Impressum layout helpers */
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:1rem;
}
@media (max-width: 820px){
  .grid-2{ grid-template-columns: 1fr; }
}
.dl{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:.35rem .9rem;
  margin: .75rem 0 0;
}
.dl dt{
  color: var(--muted);
  font-weight:700;
}
.dl dd{
  margin:0;
}
.hero--small .hero__inner{
  padding-top: 2.2rem;
  padding-bottom: 1.2rem;
}


/* === Logo splash (on load) === */
.logo-splash{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  pointer-events:none;
}
.logo-splash__backdrop{
  position:absolute;
  inset:0;
  background: radial-gradient(900px 420px at 50% 20%, rgba(240,138,36,.18) 0%, rgba(240,138,36,0) 60%),
              radial-gradient(900px 420px at 50% 80%, rgba(15,92,134,.16) 0%, rgba(15,92,134,0) 60%),
              rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  opacity:0;
  transition: opacity .35s ease;
}
.logo-splash__inner{
  position:relative;
  width:min(340px, 72vw);
  aspect-ratio: 1 / 1;
  display:grid;
  place-items:center;
  transform: scale(.75);
  opacity:0;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.18));
}
.logo-splash__img{
  width:100%;
  height:100%;
  object-fit:contain;
}
body.has-splash .logo-splash__backdrop{ opacity:1; }
body.has-splash .logo-splash__inner{
  opacity:1;
  animation: logoPop 1.05s cubic-bezier(.2,.9,.2,1) forwards;
}
body.splash-out .logo-splash__backdrop{
  opacity:0;
  transition: opacity .55s ease;
}
body.splash-out .logo-splash__inner{
  animation: logoAway .8s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes logoPop{
  0%{ transform: scale(.55); }
  60%{ transform: scale(1.06); }
  100%{ transform: scale(.98); }
}
@keyframes logoAway{
  0%{ opacity:1; transform: scale(.98); }
  100%{ opacity:0; transform: scale(.7) translateY(18px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  body.has-splash .logo-splash__inner,
  body.splash-out .logo-splash__inner{
    animation:none !important;
    opacity:1;
    transform:none;
  }
  body.has-splash .logo-splash__backdrop{ opacity:.5; }
}


/* Fly-to-header phase */
body.splash-fly .logo-splash__inner{
  animation: none;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s cubic-bezier(.2,.8,.2,1);
  transform: translate(var(--fly-x, 0px), var(--fly-y, 0px)) scale(var(--fly-scale, .35));
  opacity: .85;
}
body.splash-fly .logo-splash__backdrop{
  opacity:0;
  transition: opacity .9s ease;
}
