/* ==========================================================================
   UPD8 IT — Stylesheet
   Konzept: dunkler Minimalismus. Ein durchgehendes, warmes Dunkelgrün statt
   Schwarz oder Navy, sehr große Typografie, praktisch keine Dekoration.
   Farbe kommt nur im Logo und an genau einer Stelle vor: dem Haupt-Button.
   ========================================================================== */

:root {
  --bg: #182219;
  --bg-alt: #201a14;
  --text: #f2f2ee;
  --text-muted: #9a9791;
  --text-faint: #605d57;
  --line: rgba(255, 255, 255, 0.1);

  --accent: #4ade80;
  --accent-hover: #34c96a;

  --slant: 90px;
  --container: 1160px;
  --container-narrow: 780px;

  --font-head: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow { max-width: var(--container-narrow); }

section { position: relative; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.hero-logo {
  height: 50px;
  width: auto;
  margin-bottom: 32px;
  display: block;
}

.hero-logo .sq {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: sq-loop 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Pop in, hold, fade out, then a quiet pause before the next pass —
   the staggered animation-delay per square keeps its phase every
   loop since the cycle is periodic, so the wave-in keeps repeating. */
@keyframes sq-loop {
  0%   { opacity: 0; transform: scale(0.4); }
  8%   { opacity: 1; transform: scale(1); }
  72%  { opacity: 1; transform: scale(1); }
  88%  { opacity: 0; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo .sq { animation: none; opacity: 1; }
}

.lede {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
}

/* ---- Links & buttons ---------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  padding: 16px 30px;
  border-radius: 100px;
  background: var(--accent);
  color: #08110d;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.15s ease;
}

/* A light streak sweeps across on hover — a quick, tactile shine rather
   than a glow. */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s cubic-bezier(0.22, 0.9, 0.3, 1);
  pointer-events: none;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px) scale(1.015);
}

.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.link-arrow:hover { color: var(--accent); }

/* ---- Top bar: logo + menu toggle, no bar background --------------------- */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 30px 32px;
}

.logo img { height: 20px; width: auto; display: block; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  width: 26px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
}

.menu-toggle span:last-child { width: 65%; }
.menu-toggle:hover span:last-child { width: 100%; }

body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); width: 100%; }
body.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); width: 100%; }

/* ---- Full-screen menu overlay -------------------------------------------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

body.menu-open .menu-overlay { opacity: 1; visibility: visible; }

.menu-list {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.menu-list li:first-child { border-top: 1px solid var(--line); }

.menu-num { font-size: 14px; color: var(--text-faint); }

.menu-list a {
  font-family: var(--font-head);
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

.menu-list a:hover { color: var(--accent); }

.menu-foot {
  max-width: var(--container);
  margin: 40px auto 0;
  width: 100%;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.menu-foot a:hover { color: var(--accent); }

/* ---- Sections general ---------------------------------------------------- */

.section, .hero {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.section { padding: 170px 0; }
.hero { padding: 165px 0 120px; }

.bg-alt { background: var(--bg-alt); }

/* Modern section transition: a diagonal seam instead of a hairline.
   Each slanted section is pulled up over the previous one and clipped to
   a diagonal top edge, so the new background colour rises in from the
   right — a quiet nod to the logo's ascending steps. */
.slant-top {
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--slant));
  padding-top: calc(170px + var(--slant));
}

.site-footer.slant-top {
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--slant));
  padding-top: calc(60px + var(--slant));
}

.hero h1 { font-size: clamp(46px, 8vw, 88px); margin-bottom: 26px; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}

/* ---- Client logo marquee ---------------------------------------------- */

.client-marquee { margin-top: 140px; }

.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 75s linear infinite;
}

.marquee-viewport:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 67px;
  padding-right: 67px;
}

.marquee-group img {
  height: 41px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.marquee-group img:hover { opacity: 1; }

/* Volker Krämer and Kiosk Gleis 1 are both compact square/circular
   badges rather than wide wordmarks, so at the shared height their
   lettering reads much smaller than the single-line wordmarks around
   them — give them a bit more room. The .logo-swap wrapper (below) has
   to grow to match, or this overflows its row and gets clipped by the
   viewport's overflow:hidden. */
.marquee-group img[src*="volker-kraemer"],
.marquee-group img[src*="kebaphaus-mariahof"],
.marquee-group img[src*="privatpraxis-frauenheilkunde-porta"] { height: 60px; }
.marquee-group img[src*="kiosk-gleis1"] { height: 50px; }
.marquee-group img[src*="bautrockner-schuler"] { height: 47px; }
/* Apotheke am Simeonstift's logo is plain text with no vertical padding
   baked in, so at the shared height it reads noticeably bigger/bolder
   than the wordmarks around it. */
.marquee-group img[src*="apotheke-simeonstift"] { height: 34px; }

/* A couple of logos get a genuine colour reveal on hover instead of the
   plain brighten: two flat-coloured PNGs (base + "-hover") are stacked
   and crossfaded, since their default art has no colour worth keeping. */
.logo-swap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 41px;
  flex-shrink: 0;
}

.logo-swap img {
  height: 41px;
  width: auto;
  flex-shrink: 0;
}

.logo-swap img[src*="volker-kraemer"],
.logo-swap img[src*="kebaphaus-mariahof"],
.logo-swap img[src*="privatpraxis-frauenheilkunde-porta"] { height: 60px; }
.logo-swap:has(img[src*="volker-kraemer"]),
.logo-swap:has(img[src*="kebaphaus-mariahof"]),
.logo-swap:has(img[src*="privatpraxis-frauenheilkunde-porta"]) { height: 60px; }
.logo-swap img[src*="kiosk-gleis1"] { height: 50px; }
.logo-swap:has(img[src*="kiosk-gleis1"]) { height: 50px; }
.logo-swap img[src*="bautrockner-schuler"] { height: 47px; }
.logo-swap:has(img[src*="bautrockner-schuler"]) { height: 47px; }

.logo-swap .logo-hover {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.logo-swap:hover .logo-hover { opacity: 1; }

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); }

/* ---- Plain numbered list (Leistungen / Anspruch) -------------------------- */

.plain-list { border-top: 1px solid var(--line); }

.plain-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 32px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.plain-item .n {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--text-faint);
  padding-top: 6px;
}

.plain-item h3 { font-size: 24px; margin-bottom: 12px; font-weight: 600; }
.plain-item p { color: var(--text-muted); font-size: 16px; max-width: 640px; }

/* ---- About ----------------------------------------------------------------- */

.about-text p { color: var(--text-muted); font-size: 18px; max-width: 680px; margin-top: 24px; }

.about-facts {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--text-faint);
}

.about-facts span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--text-faint); }

/* ---- Contact ----------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.contact-rows { border-top: 1px solid var(--line); margin-top: 36px; }

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.contact-row .lab { color: var(--text-faint); }
.contact-row .val { text-align: right; color: var(--text); }
.contact-row a:hover { color: var(--accent); }

.contact-actions { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.form-field { margin-bottom: 30px; }

.form-field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.form-field input, .form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-faint); }

.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea { resize: vertical; min-height: 90px; }

.form-note { font-size: 13px; color: var(--text-faint); margin-top: 18px; }

.form-success {
  display: none;
  margin-top: 18px;
  font-size: 14px;
  color: var(--accent);
}
.form-success.visible { display: block; }

/* ---- Footer ------------------------------------------------------------------ */

.site-footer { padding: 60px 0 40px; position: relative; z-index: 1; background: var(--bg-alt); }

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13px;
}

.footer-bottom a:hover { color: var(--text); }

/* ---- Reveal animation --------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---- Legal pages ---------------------------------------------------------------- */

.legal-page { padding: 190px 0 140px; }
.legal-page h1 { font-size: clamp(32px, 4.4vw, 44px); margin-bottom: 10px; }
.legal-page .updated { color: var(--text-faint); font-size: 13.5px; margin-bottom: 56px; }
.legal-page h2 { font-size: 20px; margin-top: 46px; margin-bottom: 12px; font-weight: 600; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 15.5px; margin-bottom: 12px; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page a { color: var(--text); border-bottom: 1px solid var(--line); }
.legal-page a:hover { color: var(--accent); border-color: var(--accent); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 46px;
  font-size: 14px;
  color: var(--text-muted);
}
.back-link:hover { color: var(--text); }

/* ---- Responsive ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .plain-item { grid-template-columns: 40px 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  :root { --slant: 26px; }
  .container { padding: 0 22px; }
  .top-bar { padding: 22px; }
  .section { padding: 110px 0; }
  .hero { padding: 120px 0 60px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-row { flex-direction: column; gap: 4px; }
  .contact-row .val { text-align: left; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .menu-list a { font-size: 34px; }
  .menu-list li { padding: 16px 0; }
  .client-marquee { margin-top: 110px; }
  .marquee-group img, .logo-swap, .logo-swap img { height: 31px; }
  .marquee-group img[src*="volker-kraemer"],
  .marquee-group img[src*="kebaphaus-mariahof"],
  .marquee-group img[src*="privatpraxis-frauenheilkunde-porta"],
  .logo-swap img[src*="volker-kraemer"],
  .logo-swap img[src*="kebaphaus-mariahof"],
  .logo-swap img[src*="privatpraxis-frauenheilkunde-porta"] { height: 46px; }
  .logo-swap:has(img[src*="volker-kraemer"]),
  .logo-swap:has(img[src*="kebaphaus-mariahof"]),
  .logo-swap:has(img[src*="privatpraxis-frauenheilkunde-porta"]) { height: 46px; }
  .marquee-group img[src*="kiosk-gleis1"],
  .logo-swap img[src*="kiosk-gleis1"] { height: 38px; }
  .logo-swap:has(img[src*="kiosk-gleis1"]) { height: 38px; }
  .marquee-group img[src*="bautrockner-schuler"],
  .logo-swap img[src*="bautrockner-schuler"] { height: 35px; }
  .logo-swap:has(img[src*="bautrockner-schuler"]) { height: 35px; }
  .marquee-group img[src*="apotheke-simeonstift"] { height: 26px; }
  .marquee-group { gap: 48px; padding-right: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
