/* ============================================
   WEIDENBORNpraxis — Style
   ============================================ */

/* --- CSS Custom Properties (Theme) --- */
:root {
  --bg: #FFE5D8;
  --paper: #FCDBCC;
  --header-bg: #AE6463;
  --footer-bg: #FFE5D8;
  --ink: #8A322E;
  --brand: #70201E;
  --brand-dark: #70201E;
  --muted: #777;
  --radius: 0px;
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
  --shadow: 0 4px 8px rgba(0,0,0,0.08);
  --container-max: 1000px;
  --header-pad-y: 0.75rem;
}

/* --- Base / Reset --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}

/* Linksbündiger Flattersatz für Fließtexte auf allen Seiten */
main p,
main li,
section p,
section li {
  text-align: left;
  text-justify: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(90%, var(--container-max));
  margin-inline: auto;
}

/* --- Header / Navigation --- */
.site-header {
  background-color: var(--header-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.info-banner {
  background: color-mix(in srgb, var(--paper) 88%, white);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.info-banner__content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 0;
  font-weight: 600;
  overflow: hidden;
  position: relative;
}

.info-banner a {
  color: inherit;
  text-decoration: none;
}

.info-banner a:hover,
.info-banner a:focus-visible {
  text-decoration: underline;
}

.info-banner__track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: banner-scroll 18s linear infinite;
}

.info-banner__item {
  display: inline-block;
}

@keyframes banner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .info-banner__track { animation: none; }
}

/* Container im Header orientiert sich wieder an der Inhaltsbreite */
.site-header .container {
  width: min(94%, var(--container-max));
  margin-inline: auto;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: var(--header-pad-y) 1.5rem;
}

.logo-block {
  text-align: center; /* Logo + Unterzeile wieder mittig */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 300; /* Basis: light */
  color: #000;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Teil-Logo: WEIDENBORN bold, praxis light */
.logo-weidenborn {
  font-weight: 600; /* semibold */
}

.logo-praxis {
  font-weight: 300; /* light */
}

.subtitle {
  font-size: 0.95rem;
  color: #000;
  margin: 0.15rem 0 0;
  font-weight: 400;
  text-align: center;
}

/* ===================================================
   Klickbarer Logo-Link (zentriert, ohne Hover-Stil)
   =================================================== */

/* Logo-Link soll sich wie Block verhalten, zentriert bleiben */
.logo-link {
  flex: 1;
  display: flex;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  margin: 0 auto;
}

/* zentriert innerhalb des Flex-Headers */
.logo-block {
  text-align: center;
  margin: 0 auto;
}

/* Keine optischen Effekte beim Hover oder Fokus */
.logo-link:hover,
.logo-link:focus,
.logo-link:focus-visible {
  text-decoration: none !important;
  color: inherit !important;
  opacity: 1;
}

/* Sicherheitshalber Unterstreichung und Effekt auch für .logo entfernen */
.logo:hover,
.logo:focus {
  text-decoration: none !important;
  color: inherit !important;
}

/* Burger-Button: immer sichtbar, absolut am rechten Seitenrand des Headers */
.menu-toggle {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--brand);
  cursor: pointer;
  padding: 0.35rem 0.4rem;
  min-width: 44px;
  min-height: 44px;
}

/* Side-Drawer Navigation: immer Burger-Menü, slidet von rechts herein */
.main-nav {
  position: fixed;
  right: 0;
  top: calc(var(--header-pad-y) * 2 + 52px); /* direkt unter dem Header */
  background-color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.75rem 0.75rem 1rem;
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
  border-bottom-left-radius: 14px;
  width: min(70vw, 320px);
  transform: translateX(100%);  /* zunächst rechts außerhalb */
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 999;
}

/* geöffnetes Menü */
body.menu-open .main-nav {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.main-nav a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 400;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background-color: rgba(0,0,0,0.05);
  text-decoration: none;
}

/* Hero-Bild bündig mit Text & Kacheln */
.hero {
  margin: 0;              /* kein zusätzlicher Außenabstand */
}

.hero img {
  display: block;
  width: 100%;            /* füllt die Breite des .container aus */
  height: auto;
  margin-top: 2rem;       /* Abstand zum Header */
}

/* --- Sections --- */
.intro, .services, .about-us {
  padding: 3rem 1rem 2.5rem;
}

.opening-hours {
  margin: 2rem auto 0;
  max-width: 860px;
  background-color: var(--header-bg);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.opening-hours h4 {
  margin: 0 0 1rem;
  color: var(--paper);
  font-size: 1.1rem;
}

.opening-hours__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.opening-hours__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1.1rem;
  background: color-mix(in srgb, var(--paper) 95%, white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid color-mix(in srgb, var(--paper) 80%, var(--header-bg));
}

.hours-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
}

.opening-hours__item .hours-day {
  font-weight: 700;
}

.opening-hours__item .hours-time {
  font-weight: 600;
}

.opening-hours__item .hours-note {
  color: var(--brand);
  font-weight: 600;
  line-height: 1.5;
}

.intro h2,
.services h2,
.about-us h2 {
  color: var(--brand);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  text-align: left;
}

h2, h3 {
  color: var(--brand);
}

/* --- Cards / Grids --- */
.services { background-color: var(--bg); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card h3 {
  margin: 1rem 0;
  font-weight: 400;
  color: var(--brand);
  font-size: 1.2rem;
  text-align: center;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--footer-bg);
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 40px;
  margin: 0 0 0.75rem 0;
}

.footer-hours {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-hours strong {
  color: var(--brand);
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--brand);
  font-weight: 600;
}

/* --- Global links & buttons --- */
button {
  background-color: var(--brand);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease;
}

button:hover {
  background-color: var(--brand-dark);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Divider --- */
.hero-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #ccc, transparent);
  margin: 2rem auto;
  width: 80%;
}

/* --- Forms --- */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fff;
}

label {
  font-weight: 500;
  color: var(--ink);
  display: block;
}

/* --- Accessibility: focus styles --- */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, white);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- Responsive Enhancements --- */
@media (max-width: 1024px) {
  .container { width: 94%; }
}

@media (max-width: 768px) {
  body { font-size: clamp(15px, 4.2vw, 17px); }
  .intro, .services, .about-us { padding: 2rem 1rem; }
  h2 { font-size: clamp(1.35rem, 4.5vw, 1.6rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.25rem); }
  .hero img { margin-top: 0.5rem; }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .service-card img {
    height: 150px;
    object-fit: cover;
  }

  /* 👇 Titel in den Kacheln kompakter & sauberer */
  .service-card h3 {
    font-size: 0.9rem;
    line-height: 1.3;
    padding: 0.6rem 0.4rem 0.8rem;
    word-break: normal;
    hyphens: auto;
  }
}


@media (max-width: 480px) {
  p { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.intro-text {
  flex: 1;
  min-width: 260px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Info-Kästchen (z. B. Leistungen / Inhalte) */
.info-box {
  background-color: var(--header-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.info-section {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.75rem;
  box-shadow: var(--shadow-sm);
}

.info-section h3 {
  margin-top: 0;
}

.info-section ul {
  margin: 0.25rem 0 0.25rem 1.1rem;
}

.info-section p {
  margin-top: 0.4rem;
}

/* Responsives Verhalten */
@media (min-width: 840px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .intro-section {
    flex-direction: column;
  }
  .intro-section figure {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .header-flex { padding-inline: 1rem; }
  .logo { font-size: clamp(1.55rem, 7vw, 2.1rem); }
  .subtitle { font-size: 0.9rem; }
  .menu-toggle { font-size: 1.6rem; padding: 0.25rem 0.35rem; }

  .info-box { padding: clamp(1rem, 5vw, 1.35rem); }
  .info-section { padding: clamp(0.85rem, 4vw, 1.05rem); }
  .page-service .container { width: 96%; }
}

/* --- Leistungsseiten: Intro-Layout bündig skalieren --- */
.page-service .container {
  padding: 0 1rem; /* gleiche Innenabstände wie Startseite */
}

/* Hintergrund auf Leistungsseiten an den Header anpassen */
body.page-service,
.main.page-service {
  background-color: var(--bg);
}

.page-service .intro-section {
  margin-top: 1rem;       /* Luft unter der Überschrift */
  align-items: center;    /* Bild und Text vertikal zentrieren */
}

.page-service .intro-section figure,
.page-service .intro-section .intro-text {
  flex: 1 1 50%;          /* harmonisch nebeneinander */
  max-width: 50%;
}

@media (max-width: 768px) {
  .page-service .intro-section {
    flex-direction: column;
  }
  .page-service .intro-section figure,
  .page-service .intro-section .intro-text {
    max-width: 100%;
  }
}
/* =======================================================
   Leistungsseiten: Einheitliches Intro-Layout
   ======================================================= */
.page-service .intro-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.page-service h2 {
  text-align: left;
  font-weight: 600;
  margin: 1.2rem 0 1.6rem;
}

/* Bild links, bündig mit Container */
.page-service .intro-section figure {
  flex: 0 0 40%;
  max-width: 400px;
  margin: 0;
}

/* Bild soll die Containerbreite respektieren */
.page-service .intro-section figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Text- & Überschriftenbereich rechts */
.page-service .intro-section .intro-text {
  flex: 1;
  min-width: 260px;
}

/* Linksbündiger Satz für Fließtexte auf Leistungsseiten */
.page-service p,
.page-service li {
  text-align: left;
  text-justify: auto;
}

.page-service .intro-section .intro-text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: left;
}

.job-intro .intro-text {
  background-color: var(--paper);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.job-card {
  background: var(--paper);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.job-card h3 {
  margin: 0;
}

.job-section {
  background: color-mix(in srgb, var(--paper) 92%, white);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.75rem;
  box-shadow: var(--shadow-sm);
}

.job-section h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.job-single h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.job-section ul {
  margin: 0.25rem 0 0.25rem 1.1rem;
}

.job-signature {
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0;
}

.job-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.job-lead {
  grid-column: 1 / -1;
}

.job-lead h3 {
  margin-top: 0;
}

/* Mobile Darstellung: untereinander */
@media (max-width: 768px) {
  .page-service .intro-section {
    flex-direction: column;
  }

  .page-service .intro-section figure,
  .page-service .intro-section .intro-text {
    max-width: 100%;
  }

  .page-service .intro-section .intro-text h2 {
    text-align: left;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  background-color: var(--paper);
  color: var(--ink);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-radius: 14px;
  display: none;
  gap: 1rem;
  align-items: center;
  max-width: min(960px, 92vw);
  z-index: 2000;
}

.cookie-banner.is-visible { display: flex; }
.cookie-banner.is-hidden { display: none; }

.cookie-text { flex: 1; font-size: 0.95rem; }

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-accept {
  background-color: var(--brand);
  color: #fff;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.cookie-actions a {
  color: var(--brand);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

.contact-form .hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .contact-status {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}

.contact-form .quiz-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
