/* ============================================================
   Notfall-Kurier – Stylesheet
   Webdesign Mediaprime
   ============================================================ */

:root {
  --navy: #002b5c;
  --navy-dark: #001a3a;
  --navy-light: #0a4785;
  --yellow: #ffdd00;
  --yellow-dark: #f5c400;
  --grey: #6b7280;
  --grey-light: #f4f6f9;
  --grey-border: #e3e8ef;
  --white: #ffffff;
  --text: #1e2a3a;
  --radius: 14px;
  --shadow-sm: 0 4px 14px rgba(0, 43, 92, 0.07);
  --shadow-md: 0 12px 34px rgba(0, 43, 92, 0.12);
  --shadow-lg: 0 24px 60px rgba(0, 43, 92, 0.18);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-light); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--yellow-dark); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 800; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 90px 0; }
.section--tight { padding: 64px 0; }
.section--grey { background: var(--grey-light); }
.section--navy { background: var(--navy); color: #dce6f2; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--yellow-dark);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.section-lead { font-size: 1.1rem; color: var(--grey); max-width: 640px; }
.text-center { text-align: center; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--yellow); color: var(--navy); box-shadow: 0 10px 24px rgba(255, 221, 0, .35); }
.btn--primary:hover { background: var(--yellow-dark); color: var(--navy); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(255, 221, 0, .45); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: var(--white); color: var(--navy); transform: translateY(-3px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-light); color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 74px; transition: height .35s var(--ease); }
.site-header.scrolled .nav__logo img { height: 60px; }

.nav__menu { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav__link {
  position: relative;
  font-weight: 600;
  color: var(--white);
  padding: 6px 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.site-header.scrolled .nav__link { color: var(--navy); text-shadow: none; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--yellow);
  transition: width .3s var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link:hover, .nav__link.active { color: var(--yellow-dark); }
.site-header.scrolled .nav__link:hover { color: var(--yellow-dark); }

.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--navy);
  padding: 10px 20px; border-radius: 50px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(255,221,0,.35);
  transition: transform .3s var(--ease);
}
.nav__phone:hover { transform: translateY(-2px); color: var(--navy); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 3px; border-radius: 3px; background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s;
}
.site-header.scrolled .nav__toggle span { background: var(--navy); }
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-light) 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,221,0,.10), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(255,221,0,.08), transparent 35%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 18px; border-radius: 50px; font-weight: 600; font-size: .9rem;
  margin-bottom: 24px;
}
.hero__badge .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255,221,0,.7); animation: pulse 2s infinite;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); color: var(--white); margin-bottom: 22px; }
.hero h1 .accent { color: var(--yellow); }
.hero__lead { font-size: 1.2rem; color: #cdd9e8; margin-bottom: 34px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero__stat .num { font-size: 2.2rem; font-weight: 800; color: var(--yellow); }
.hero__stat .lbl { font-size: .9rem; color: #b9c7da; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__card {
  position: relative; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15); border-radius: 24px;
  padding: 34px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__card img { filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
.hero__float {
  position: absolute; background: var(--white); color: var(--navy);
  border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow-md);
  font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 10px;
}
.hero__float .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; }
.hero__float--tl { top: 6%; left: -6%; animation: float 5s ease-in-out infinite; }
.hero__float--br { bottom: 8%; right: -4%; animation: float 5s ease-in-out .8s infinite; }

/* ---------- Feature row ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-row.reverse .feature-row__media { order: 2; }
.feature-row__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.feature-row__body h3 { font-size: 1.7rem; margin-bottom: 16px; }
.feature-row__body p { color: var(--grey); margin-bottom: 22px; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: grid; place-items: center; margin-bottom: 20px;
  transition: transform .35s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__icon svg { width: 30px; height: 30px; stroke: var(--yellow); fill: none; stroke-width: 2; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--grey); font-size: .96rem; }

/* ---------- Values / Why us ---------- */
.value { text-align: center; padding: 20px; }
.value__icon {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  border: 2px solid var(--grey-border);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.value:hover .value__icon { transform: translateY(-6px); border-color: var(--yellow); }
.value__icon svg { width: 40px; height: 40px; stroke: var(--navy); fill: none; stroke-width: 1.8; }
.value h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value p { color: var(--grey); }

/* ---------- Tabs (Wofür page) ---------- */
.tabs { display: grid; grid-template-columns: 320px 1fr; gap: 40px; }
.tabs__nav { display: flex; flex-direction: column; gap: 12px; }
.tabs__btn {
  text-align: left; background: var(--white); border: 1px solid var(--grey-border);
  border-radius: 12px; padding: 18px 22px; cursor: pointer; font-weight: 700;
  color: var(--navy); font-size: 1.02rem; display: flex; align-items: center; gap: 14px;
  transition: all .3s var(--ease);
}
.tabs__btn .n {
  width: 30px; height: 30px; border-radius: 8px; background: var(--grey-light);
  display: grid; place-items: center; font-size: .9rem; color: var(--grey); transition: all .3s var(--ease);
}
.tabs__btn:hover { border-color: var(--yellow); }
.tabs__btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: var(--shadow-md); }
.tabs__btn.active .n { background: var(--yellow); color: var(--navy); }
.tabs__panels { position: relative; }
.tabs__panel { display: none; animation: fadeUp .5s var(--ease); }
.tabs__panel.active { display: block; }
.tabs__panel img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin-bottom: 24px; }
.tabs__panel h3 { font-size: 1.6rem; margin-bottom: 14px; }
.tabs__panel p { color: var(--grey); margin-bottom: 20px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { position: relative; text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); margin-bottom: 16px; }
.cta-band p { color: #cdd9e8; font-size: 1.15rem; margin-bottom: 30px; }
.cta-band .phone-xl {
  display: inline-block; font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800;
  color: var(--yellow); margin-bottom: 26px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy); display: grid; place-items: center;
}
.info-list .ic svg { width: 22px; height: 22px; stroke: var(--yellow); fill: none; stroke-width: 2; }
.info-list .lbl { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey); }
.info-list .val { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.info-list .val a { color: var(--navy); }
.info-list .val a:hover { color: var(--yellow-dark); }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--grey-border); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.contact-form { background: var(--white); border: 1px solid var(--grey-border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .92rem; color: var(--navy); }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--grey-border);
  border-radius: 10px; font-size: 1rem; font-family: inherit; transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(10,71,133,.12);
}
.form-note { font-size: .85rem; color: var(--grey); margin-top: 10px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: var(--navy);
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-light) 0%, var(--navy) 55%, var(--navy-dark) 100%);
  color: var(--white); padding: 170px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,221,0,.1), transparent 40%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); position: relative; }
.page-hero p { color: #cdd9e8; font-size: 1.15rem; margin-top: 14px; position: relative; }
.breadcrumb { position: relative; margin-top: 18px; font-size: .9rem; color: #a9bcd4; }
.breadcrumb a { color: var(--yellow); }

/* ---------- Prose (Impressum) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; color: #3c4a5c; }
.prose .card-block { background: var(--grey-light); border-left: 4px solid var(--yellow); border-radius: 10px; padding: 24px 28px; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #9fb1c9; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.site-footer img.flogo { height: 50px; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #9fb1c9; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .88rem;
}
.footer-bottom a { color: #9fb1c9; }
.footer-bottom a:hover { color: var(--yellow); }
.footer-bottom .credit a { color: var(--yellow); font-weight: 600; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1200;
  max-width: 560px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--grey-border);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 24px 26px; transform: translateY(140%); transition: transform .5s var(--ease);
}
.cookie.show { transform: translateY(0); }
.cookie h4 { font-size: 1.1rem; margin-bottom: 8px; }
.cookie p { font-size: .92rem; color: var(--grey); margin-bottom: 16px; }
.cookie p a { color: var(--navy-light); text-decoration: underline; }
.cookie__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie .btn { padding: 11px 22px; font-size: .95rem; }
.cookie__decline { background: var(--grey-light); color: var(--navy); border-color: var(--grey-border); }
.cookie__decline:hover { background: var(--grey-border); color: var(--navy); transform: translateY(-2px); }

/* ---------- Scroll animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* ---------- Video facade ---------- */
.video-facade {
  position: absolute; inset: 0; cursor: pointer;
  background-size: cover; background-position: center; background-color: var(--navy);
  display: grid; place-items: center;
}
.video-facade::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 20, 45, .35); transition: background .35s var(--ease);
}
.video-facade:hover::before { background: rgba(0, 20, 45, .12); }
.video-facade__play {
  position: relative; width: 78px; height: 78px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4); transition: transform .35s var(--ease);
}
.video-facade:hover .video-facade__play { transform: scale(1.12); }
.video-facade:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.video-facade__play svg { width: 32px; height: 32px; margin-left: 4px; fill: var(--navy); }

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,221,0,.6); }
  70% { box-shadow: 0 0 0 12px rgba(255,221,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,221,0,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: var(--yellow); display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(20px); transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy-light); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; stroke: var(--yellow); fill: none; stroke-width: 2.4; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__visual { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.reverse .feature-row__media { order: 0; }
  .tabs { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav__menu {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(300px, 82vw);
    background: var(--navy); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 26px; padding: 40px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 1100;
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__link, .site-header.scrolled .nav__link { color: var(--white); font-size: 1.2rem; text-shadow: none; }
  .nav__toggle { display: flex; z-index: 1101; }
  .nav__phone { display: none; }
  .section { padding: 64px 0; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__stats { gap: 26px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__stat .num { font-size: 1.8rem; }
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
}
