/* ── Lokale Fonts (DSGVO-konform, kein Google-Request) ── */

/* Raleway – Regular (400) */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/raleway-regular-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/raleway-regular-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Raleway – Semibold (600) */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/raleway-semibold-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Raleway – Bold (700) */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/raleway-bold-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==============================================
   Zahnarztpraxis Scheinpflug – Reinheim
   Design angelehnt an das originale Contao-Theme
   ============================================== */

:root {
  --color-primary: #68B12F;
  --color-primary-dark: #4e8a1e;
  --color-primary-light: #e8f5d8;
  --color-dark: #333333;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f4f4;
  --color-text: #000000;
  --color-text-muted: #8d9599;
  --color-white: #ffffff;
  --color-border: #eeeeee;
  --color-error: #c0392b;

  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Raleway', sans-serif;

  --max-width: 1140px;
  --header-height: 80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── Boxed Layout (wie altes Contao-Theme) ── */
#wrapper {
  background-color: #fff;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .5);
  box-shadow: 0 0 8px rgba(0, 0, 0, .5);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s;
}

a:hover { color: var(--color-primary); }

ul, ol { list-style: none; }

/* ── Typografie ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: rgba(104, 177, 47, 0.8);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.6em;
  margin-bottom: 0.5em;
}

h4 {
  font-size: 1.4em;
  margin-bottom: 0.4em;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

/* ── Wrapper ── */
.wrap {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 30px;
}

.wrap--wide {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 30px;
}

/* ======================
   TOPBAR (Gruen wie altes Design)
   ====================== */
.topbar {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  padding: 8px 0;
}

.topbar .wrap {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  font-size: 14px;
}

.topbar a:hover { color: var(--color-white); text-decoration: underline; }

.topbar svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ======================
   HEADER / NAV
   ====================== */
.site-header {
  background: var(--color-white);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 2px rgba(0,0,0,0.2);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding-top: 15px;
  padding-bottom: 15px;
  gap: 2rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 80px;
  width: auto;
}

@media (min-width: 769px) {
  .logo img {
    height: 100px;
  }
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-dark);
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation – Contao-Stil */
.main-nav ul {
  display: flex;
  gap: 0;
  align-items: center;
}

.main-nav a,
.main-nav .current {
  position: relative;
  padding: 5px 12px;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  transition: color 0.25s;
  line-height: 2;
}

.main-nav a::before {
  content: '';
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.4s ease;
}

.main-nav a:hover::before {
  width: calc(100% - 24px);
}

.main-nav a:hover {
  color: var(--color-primary);
  background: none;
}

.main-nav .current {
  color: var(--color-primary);
  font-weight: 400;
  background: none;
}

.main-nav .current::before {
  content: '';
  position: absolute;
  left: 12px;
  bottom: 0;
  width: calc(100% - 24px);
  height: 2px;
  background: var(--color-primary);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: ' \25BE';
  font-size: 0.75em;
  margin-left: 2px;
}

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 12px;
  background: rgba(237, 237, 237, 0.95);
  min-width: 220px;
  border: 1px solid rgba(104, 177, 47, 0.8);
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  flex-direction: column;
  z-index: 110;
  border-radius: 0;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 1px;
  color: var(--color-text-muted) !important;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  border-radius: 0;
}

.dropdown a::before {
  display: none;
}

.dropdown a:hover {
  color: var(--color-primary) !important;
  background: transparent;
  padding-left: 15px;
}

.nav-close {
  display: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-dark);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ======================
   HERO (Slider-Bereich)
   ====================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

.hero picture {
  display: block;
  width: 100%;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: var(--color-white);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.6) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  max-width: 100%;
  margin: 0 auto;
}

.hero h1 {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  font-size: 1.4em;
  font-weight: 700;
  text-shadow: none;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  max-width: fit-content;
}

.hero-subtitle {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 10px 20px;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.8;
  max-width: fit-content;
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  margin-top: 1rem;
  max-width: fit-content;
  transition: opacity 0.2s;
}

.hero-badge:hover {
  opacity: 0.9;
  color: var(--color-white);
}

/* ======================
   BREADCRUMB (Contao-Stil)
   ====================== */
.breadcrumb {
  font-size: 11px;
  line-height: 30px;
  color: var(--color-text-muted);
  padding: 0;
  margin: 0;
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb ul li {
  float: left;
  line-height: 30px;
}

.breadcrumb ul li::before {
  content: "\203A";
  margin-right: 6px;
  margin-left: 6px;
}

.breadcrumb ul li:first-child::before {
  display: none;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-primary); }

/* Fallback für nav-basierte Breadcrumbs (ohne ul) */
.breadcrumb span { margin: 0 0.4rem; }

/* ======================
   PAGE HEADER (Unterseiten – Contao-Stil, kein grüner Balken)
   ====================== */
.page-header {
  background: var(--color-white);
  padding: 30px 0 0;
  position: relative;
}

.page-header h1 {
  color: rgba(104, 177, 47, 0.8);
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.page-header h1::after {
  content: "";
  width: 31.33333%;
  position: absolute;
  bottom: -2px;
  left: 0;
  display: block;
  border-bottom: 3px solid #68B12F;
}

/* ======================
   SECTIONS
   ====================== */
.section {
  padding: 40px 0;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section--white {
  background: var(--color-white);
}

.section--dark {
  background: rgba(237, 237, 237, 0.5);
  color: var(--color-text);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-text-muted);
}

.section-intro {
  max-width: 680px;
  margin-bottom: 2rem;
}

.section-intro.centered {
  text-align: center;
  margin-inline: auto;
}

/* ======================
   CONTENT BLOCKS
   ====================== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.content-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.content-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.content-grid--sidebar {
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

/* Card */
.card {
  background: var(--color-white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 a {
  color: var(--color-dark);
}

.card-body h3 a:hover {
  color: var(--color-primary);
}

/* Text-Bild Kombi */
.text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.text-image--reverse .text-image__img {
  order: -1;
}

.text-image__img {
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.text-image__img::after {
  display: none;
}

.text-image__img img {
  width: 100%;
  border-radius: 0;
}

/* Liste mit Haken */
.check-list li {
  padding: 0.4rem 0 0.4rem 1.8rem;
  position: relative;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Highlight-Box */
.highlight-box {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem 2rem;
  border-radius: 0;
  margin: 2rem 0;
}

/* Bewertungen */
.testimonial {
  background: var(--color-white);
  border-radius: 0;
  padding: 2rem;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.testimonial::before {
  content: '\201E';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.2rem;
  line-height: 1;
}

.testimonial p {
  font-style: italic;
  padding-top: 1.5rem;
  color: var(--color-text);
  font-size: 1.05em;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.8em;
  font-style: italic;
  color: var(--color-primary);
}

.testimonial-stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.testimonial-title {
  font-family: var(--font-heading);
  font-size: 1.4em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-align: center;
}

/* ======================
   TESTIMONIAL SLIDER
   ====================== */
.slider-wrapper {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slider-track .testimonial {
  width: calc((100% - 3rem) / 3);
  min-width: calc((100% - 3rem) / 3);
  flex-shrink: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.2s;
}

.slider-btn:hover {
  opacity: 0.8;
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-btn--prev { left: 0; }
.slider-btn--next { right: 0; }

@media (max-width: 960px) {
  .slider-track .testimonial {
    min-width: calc(50% - 0.75rem);
  }
}

@media (max-width: 600px) {
  .slider-track .testimonial {
    min-width: 100%;
  }

  .slider-btn--prev { left: 0.25rem; }
  .slider-btn--next { right: 0.25rem; }
}

/* ======================
   TEAM
   ====================== */
.team-lead {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.team-lead .team-member {
  max-width: 260px;
  margin-inline: auto;
}

.team-lead h2 {
  margin-top: 1rem;
  font-size: 1.4em;
  margin-bottom: 0.2rem;
}

.team-lead p {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 400;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(15%);
  transition: filter 0.3s, transform 0.3s;
}

.team-member:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.team-member h3 {
  margin-top: 0.8rem;
  font-size: 1em;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================
   SERVICES GRID (Leistungen)
   ====================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: background 0.3s;
}

.service-card:hover .service-card__overlay {
  background: linear-gradient(0deg, rgba(104,177,47,0.85) 0%, rgba(0,0,0,0.1) 60%);
}

.service-card__overlay h3 {
  color: var(--color-white);
  font-size: 1.2em;
  margin-bottom: 0;
}

.service-card__overlay h3 a {
  color: var(--color-white);
}

/* ======================
   KONTAKTFORMULAR
   ====================== */
.kontakt-form {
  max-width: 640px;
}

.form-gruppe {
  margin-bottom: 1.25rem;
}

.form-gruppe label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 400;
  font-size: 14px;
}

.form-pflicht::after {
  content: ' *';
  color: var(--color-error);
}

.form-gruppe input,
.form-gruppe textarea,
.form-gruppe select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--color-white);
  transition: border-color 0.15s;
  box-shadow: none;
}

.form-gruppe input:focus,
.form-gruppe textarea:focus,
.form-gruppe select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(104, 177, 47, 0.15);
}

/* Autofill-Hintergrund an Kundenfarben anpassen (kein Browser-Blau) */
.form-gruppe input:-webkit-autofill,
.form-gruppe input:-webkit-autofill:hover,
.form-gruppe input:-webkit-autofill:focus,
.form-gruppe textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--color-white) inset;
  -webkit-text-fill-color: var(--color-text);
  border-color: var(--color-primary);
  transition: background-color 5000s ease-in-out 0s;
}

.form-gruppe textarea {
  min-height: 150px;
  resize: vertical;
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.form-checkbox input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.form-submit {
  display: inline-block;
  padding: 10px 20px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form-submit:hover {
  opacity: 0.8;
}

.form-fehler {
  background: #fdf0ef;
  border-left: 4px solid var(--color-error);
  padding: 1rem 1.5rem;
  border-radius: 0;
  margin-bottom: 1.5rem;
  font-size: 14px;
  color: var(--color-error);
}

/* ======================
   SIDEBAR
   ====================== */
.sidebar-box {
  background: var(--color-surface-alt);
  border-radius: 0;
  padding: 1.8rem;
  box-shadow: none;
  margin-bottom: 1.5rem;
}

.sidebar-box h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: 1rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.2em;
}

.sidebar-box p {
  font-size: 14px;
  margin-bottom: 0.5rem;
}

/* ======================
   FOOTER (Gruen wie altes Design)
   ====================== */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 50px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-size: 18px;
}

.site-footer a {
  color: var(--color-white);
}

.site-footer a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 0.4rem;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-hours p {
  margin-bottom: 0.3rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

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

/* ======================
   DANKE-SEITE
   ====================== */
.danke-box {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 560px;
  margin: 3rem auto;
  background: var(--color-white);
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.danke-box svg {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.danke-box .btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 10px 20px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 0;
  font-weight: 600;
  transition: opacity 0.2s;
}

.danke-box .btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  opacity: 0.8;
}

/* ======================
   IMPRESSUM / DATENSCHUTZ
   ====================== */
.legal-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  margin-top: 1.5rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li { margin-bottom: 0.3rem; }

/* ======================
   BACK TO TOP
   ====================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover { background: #aaaaaa; }

.back-to-top svg {
  width: 16px;
  height: 16px;
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 960px) {
  .content-grid--2,
  .content-grid--sidebar,
  .text-image {
    grid-template-columns: 1fr;
  }

  .text-image--reverse .text-image__img {
    order: 0;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    padding: 5rem 2rem 2rem;
    transition: right 0.35s ease;
    z-index: 200;
    overflow-y: auto;
  }

  .main-nav.open { right: 0; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a,
  .main-nav .current {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0;
  }

  .main-nav a::before {
    display: none;
  }

  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1rem;
    background: transparent;
  }

  .dropdown a {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    position: relative;
    max-width: 100%;
    padding: 1.5rem;
  }

  .hero::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 100%);
  }

  .topbar .wrap {
    justify-content: center;
    font-size: 12px;
  }
}

/* ── Overlay for mobile nav ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}

.nav-overlay.active { display: block; }

/* ======================
   PRAXIS GALLERY
   ====================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* ======================
   DIVIDER (Contao-Stil)
   ====================== */
.section-divider {
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  width: 31.33%;
  height: 3px;
  background: var(--color-primary);
}

/* ======================
   JSON-LD (hidden)
   ====================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ======================
   UTILITY CLASSES
   ====================== */
.mt-sm { margin-top: 0.8rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }
.mb-md { margin-bottom: 1.5rem; }

.wrap--narrow { max-width: 800px; }

.tel-highlight {
  font-size: 1.2rem;
  font-weight: 600;
}

.text-small {
  font-size: 0.85rem;
}

.smartline-logo {
  max-width: 180px;
  margin-bottom: 0.5rem;
}

/* Honeypot (Spam-Schutz) */
.hp-field {
  position: absolute;
  left: -9999px;
}

/* Formular-Fehler initial versteckt */
.form-fehler { display: none; }
.form-fehler.active { display: block; }
