/* Zahnarztpraxis El Modalal – Stylesheet (ohne externe Ressourcen) */

:root {
  --primary: #00782c;       /* Grün aus dem Logo, abgedunkelt für Kontrast */
  --dark: #1d1d1b;          /* Schwarz aus dem Logo */
  --accent: #c8232e;        /* Rot aus dem Logo */
  --primary-soft: #e9f5ed;
  --sand: #f6f7f5;
  --ink: #1b2a2e;
  --muted: #5b6b6f;
  --line: #dfe6e5;
  --white: #fff;
  --error: #b42318;
  --success: #067647;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(29, 29, 27, .22);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--dark); }
h1, h2, h3 { overflow-wrap: break-word; text-wrap: balance; line-height: 1.2; margin: 0 0 .6em; color: var(--dark); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
p, li, figcaption, address, label { text-wrap: pretty; }
figcaption, .checklist li { text-wrap: balance; }
a[href^="tel:"], .slot { white-space: nowrap; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--primary); color: var(--white); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--primary); background: var(--primary); color: var(--white); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--dark); border-color: var(--dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: var(--white); }
.btn-small { padding: .45rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 92px; }
.brand { display: flex; flex: none; }
.brand-logo { height: 72px; width: auto; }
.site-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--primary); }
.nav-icon, .nav-contact, .nav-toggle { display: none; }

@media (max-width: 880px) {
  :root { --header-h: 92px; }
  .site-header { background: var(--white); backdrop-filter: none; } /* sonst wäre das feste Menü-Panel im Header gefangen */
  .nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--primary-soft); cursor: pointer; transition: background .2s; }
  .nav-toggle[aria-expanded="true"] { background: var(--primary); }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--dark); transition: transform .25s, background .2s; }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 0; }
  .nav-toggle-bar::before { transform: translateY(-6px); }
  .nav-toggle-bar::after { transform: translateY(6px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { background: var(--white); transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { background: var(--white); transform: rotate(-45deg); }

  /* Menü als Vollbild-Panel unter dem Header */
  .site-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 70; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
    padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); background: var(--white); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .5rem; }
  .site-nav .nav-links a { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: var(--radius); background: var(--sand); font-size: 1.15rem; font-weight: 600; color: var(--dark); }
  .site-nav .nav-links a::after { content: ""; margin-left: auto; width: .55rem; height: .55rem; border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); transform: rotate(45deg); }
  .site-nav .nav-links a:active { background: var(--primary-soft); }
  .nav-icon { display: block; flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--white); color: var(--primary); }
  .nav-cta { display: none; }
  .nav-contact { display: grid; gap: .6rem; }
  .nav-contact p { margin: .3rem 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
  html.nav-open { overflow: hidden; }
  html.nav-open .quick { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav, .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { transition: none !important; }
}


/* Hero */
.hero { background: linear-gradient(160deg, var(--primary-soft) 0%, var(--sand) 55%, #fdf1f1 100%); padding: clamp(3rem, 8vw, 6rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .8rem; }
.accent { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-card { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.hero-card hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.hero-card-day { margin: .8rem 0 .2rem; color: var(--muted); font-size: .95rem; }
.hero-card-hours { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin: 0; }
.hero-card-address { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; padding: .3rem .8rem; border-radius: 999px; margin: 0; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status-open { background: #e6f6ee; color: var(--success); }
.status-closed { background: #f3f4f4; color: var(--muted); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-center { align-items: center; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 1.1rem; }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--primary-soft); border: 2px solid var(--primary); }

.team-photo { margin: 0; }
.team-photo img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.team-photo figcaption { margin-top: .8rem; font-size: .95rem; color: var(--muted); text-align: center; }

.hours { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.hours th, .hours td { text-align: left; padding: .7rem .4rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; width: 40%; white-space: nowrap; }
.hours tr.is-today { background: var(--primary-soft); }
.hours abbr { text-decoration: none; }
.hours tr.is-today th::after { content: " · heute"; color: var(--accent); font-weight: 500; font-size: .9rem; }
.note { color: var(--muted); font-size: .95rem; }
.address-block { font-size: 1.1rem; margin-bottom: 1.4rem; }
.contact-direct { font-size: 1.3rem; font-weight: 700; }
.contact-direct a { text-decoration: none; }

/* Formular */
.form { background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9rem; margin: .3rem 0 0; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.field-check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; }
.field-check label { font-weight: 400; font-size: .92rem; margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.form-note { margin: .8rem 0 0; font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 500; }
.alert-success { background: #e6f6ee; color: var(--success); }
.alert-error { background: #fdecea; color: var(--error); }

/* Rechtliches */
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.notice { background: #fff7e6; border-left: 4px solid #f0a020; padding: .8rem 1rem; border-radius: 6px; }

/* Footer */
.site-footer { background: var(--sand); color: var(--muted); border-top: 4px solid var(--primary); padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: var(--primary); }
.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-title { color: var(--dark); font-weight: 700; margin-bottom: .6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .3rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Handy: kompakt, damit die Seite nicht endlos lang wird */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-logo { height: 52px; }
  .header-inner { min-height: 72px; }
  :root { --header-h: 72px; }
  .section { padding: 2.5rem 0; }
  .section-head { margin-bottom: 1.4rem; }
  .section-head p:last-child:not(.eyebrow) { display: none; }
  h2 { font-size: 1.45rem; }

  /* Hero: heute-Zeiten als kompakte Zeile, Adresse steht unten bei „Anfahrt“ */
  .hero { padding: 1.8rem 0 2rem; }
  .hero-grid { gap: 1.4rem; }
  h1 { font-size: 1.85rem; }
  .lead { font-size: 1rem; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-ghost { display: none; } /* Anrufen steckt im Kontakt-Button */
  .hero-card { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: 1rem 1.2rem; }
  .hero-card-day { margin: 0; font-size: .9rem; }
  .hero-card-day::after { content: ":"; }
  .hero-card-hours { font-size: .95rem; }
  .hero-card hr, .hero-card-address, .hero-card .link-arrow { display: none; }

  /* Leistungen als 2×3-Kacheln */
  .cards { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .card { padding: 1rem .9rem; text-align: center; }
  .card:hover { transform: none; }
  .card-icon { width: 40px; height: 40px; padding: 8px; margin: 0 auto .6rem; }
  .card h3 { font-size: .95rem; margin: 0; }
  .card p { display: none; }

  /* Praxis: Foto zuerst */
  .split { gap: 1.4rem; }
  .team-photo { order: -1; }
  .team-photo figcaption { font-size: .85rem; margin-top: .5rem; }
  .checklist { margin-top: 1rem; }
  .checklist li { margin-bottom: .45rem; }

  /* Sprechzeiten & Anfahrt */
  .hours { font-size: .95rem; margin-bottom: .8rem; }
  .hours th, .hours td { padding: .45rem .3rem; vertical-align: top; }
  .hours .slot { display: block; }
  .hours .slot-sep { display: none; }
  .note { font-size: .88rem; margin-bottom: 0; }
  #sprechzeiten .split > div:last-child h2 { display: none; }
  .address-block { font-size: 1rem; margin-bottom: .8rem; }

  /* Kontakt */
  .contact-direct { display: none; }
  .form { padding: 1.2rem; }
  .field { margin-bottom: .8rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field textarea { min-height: 6.5rem; }

  /* Footer kompakt */
  .site-footer { padding: 1.8rem 0 1rem; font-size: .9rem; }
  .footer-logo { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 1.2rem; padding-top: .8rem; }

}

/* Schwebender Kontakt-Button (alle Seiten, alle Bildschirmgrößen) */
.quick { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; }
.quick-toggle { display: flex; align-items: center; gap: .5rem; margin-left: auto; width: max-content; padding: .85rem 1.25rem .85rem 1rem;
  border-radius: 999px; background: var(--primary); color: var(--white); font-weight: 700; cursor: pointer; list-style: none;
  box-shadow: 0 10px 25px -8px rgba(0, 120, 44, .6); transition: background .2s, transform .2s; }
.quick-toggle::-webkit-details-marker { display: none; }
.quick-toggle:hover { background: var(--dark); }
.quick-toggle:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; }
.quick-toggle svg { width: 24px; height: 24px; }
.quick-icon-close, .quick[open] .quick-icon-open { display: none; }
.quick[open] .quick-icon-close { display: block; }
.quick[open] .quick-toggle { background: var(--dark); }
.quick-panel { position: absolute; right: 0; bottom: calc(100% + .75rem); width: min(330px, calc(100vw - 2rem)); max-height: calc(100vh - 7rem); overflow-y: auto;
  padding: 1.1rem; background: var(--white); border-radius: 18px; box-shadow: 0 20px 50px -12px rgba(29, 29, 27, .35); }
.quick[open] .quick-panel { animation: quick-in .18s ease-out; }
@keyframes quick-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.quick-title { margin: 0 0 .2rem; font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.quick-status { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem; margin: 0 0 .9rem; font-size: .85rem; color: var(--muted); }
.quick-status .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.quick-status.is-open .status-dot { background: var(--success); }
.quick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.quick-item { display: flex; align-items: center; gap: .8rem; padding: .65rem .75rem; border-radius: 12px; background: var(--sand);
  color: var(--dark); text-decoration: none; font-weight: 600; line-height: 1.3; transition: background .15s; }
.quick-item:hover { background: var(--primary-soft); color: var(--dark); }
.quick-item svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--white); color: var(--primary); }
.quick-item small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.quick-primary { background: var(--primary); color: var(--white); }
.quick-primary:hover { background: var(--dark); color: var(--white); }
.quick-primary small { color: rgba(255, 255, 255, .85); }
@media (max-width: 600px) {
  .quick { right: 1rem; bottom: 1rem; }
  .quick-toggle { padding: .8rem; }
  .quick-label { display: none; }
  .quick-toggle svg { width: 26px; height: 26px; }
  .site-footer { padding-bottom: 5.5rem; } /* Button verdeckt keine Footer-Links */
  .quick[open]::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(29, 29, 27, .35); }
}
@media (prefers-reduced-motion: reduce) { .quick[open] .quick-panel { animation: none; } }
