/*
================================================================================
  Tierarztpraxis An der Abelitz
  Datei:    fileadmin/template/css/style.css
  Version:  3.1

  Neu in 3.1:
    - Logo overlapping (Header → Hero)
    - Bootstrap-Klassen-Overrides (tada-content-block, col-*, px-*, mx-* etc.)
    - Content-Element-Layouts (Praxis-Seite)
================================================================================
*/


/* ============================================================
   01  FONTS
============================================================ */

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-MediumItalic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}


/* ============================================================
   02  CUSTOM PROPERTIES
============================================================ */

:root {
  --c-slate:        #3B4F5C;
  --c-slate-light:  #4E6878;
  --c-slate-pale:   #DDE6EC;
  --c-beige:        #F0EBE1;
  --c-beige-mid:    #E8E0D4;
  --c-beige-dark:   #D6CBBB;
  --c-brown-soft:   #C4B49A;
  --c-brown-mid:    #8C7355;
  --c-brown-deep:   #5C4A32;
  --c-terra:        #A84B35;
  --c-terra-light:  #C8614A;
  --c-terra-pale:   #F5E8E4;
  --c-dark:         #2A3840;
  --c-text:         #2E2A22;
  --c-text-mid:     #5C4E3E;
  --c-text-muted:   #8C7E6E;
  --c-white:        #FDFAF6;
  --font-serif:     'Lora', Georgia, serif;
  --font-sans:      'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --max-w:     1200px;
  --pad:       20px;
  --transition: 0.15s ease;
  --shadow-sm:  0 1px 4px rgba(44,34,20,0.08);
  --shadow-md:  0 2px 12px rgba(44,34,20,0.12);
  --shadow-lg:  0 4px 24px rgba(44,34,20,0.16);
}


/* ============================================================
   03  RESET & BASE
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--c-beige);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.nav-is-open { overflow: hidden; }
img, video  { max-width: 100%; height: auto; display: block; }
a           { color: inherit; text-decoration: none; }
a:hover     { color: var(--c-terra); }
button      { font-family: var(--font-sans); cursor: pointer; }
ul, ol      { list-style: none; }
address     { font-style: normal; }
hr          { border: none; border-top: 1px solid var(--c-beige-dark); margin: var(--space-lg) 0; }
table       { border-collapse: collapse; }


/* ============================================================
   04  ICON-KLASSEN
============================================================ */

.icon     { width: 16px; height: 16px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon--sm { width: 14px; height: 14px; }
.icon--lg { width: 20px; height: 20px; }
.icon--xl { width: 24px; height: 24px; }


/* ============================================================
   05  TYPOGRAFIE
============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-brown-deep);
}
h1 { font-size: clamp(22px, 4vw, 32px);   margin-bottom: var(--space-md); }
h2 { font-size: clamp(18px, 3vw, 26px);   margin-bottom: var(--space-sm); }
h3 { font-size: clamp(16px, 2.5vw, 20px); margin-bottom: var(--space-sm); }
h4 { font-size: 16px;                     margin-bottom: var(--space-xs); }
p              { margin-bottom: var(--space-md); color: var(--c-text-mid); }
p:last-child   { margin-bottom: 0; }
strong, b      { font-weight: 600; color: var(--c-text); }
small          { font-size: 0.85em; color: var(--c-text-muted); }
blockquote {
  border-left: 3px solid var(--c-beige-dark);
  padding-left: var(--space-md);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--c-text-muted);
  margin: var(--space-md) 0;
}


/* ============================================================
   06  TOPBAR
============================================================ */

.topbar {
  background: var(--c-dark);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
}
.topbar-text { font-size: 12px; color: rgba(255,255,255,0.45); margin: 0; }
.topbar-tel  {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  transition: color var(--transition);
}
.topbar-tel:hover { color: #fff; }


/* ============================================================
   07  HEADER & DESKTOP-NAVIGATION
============================================================ */

#main-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-beige-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad);
  height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
}

/* ── Logo — groß mit farbigem Hintergrund ── */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo:hover { color: inherit; }
.logo-img {
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: contain;
  /* Schieferblau damit das transparente weiße Logo sichtbar wird */
  background: var(--c-slate);
  border: 2px solid var(--c-slate-light);
  padding: 6px;
  flex-shrink: 0;
}
.logo-name {
  display: block; font-family: var(--font-serif);
  font-size: 16px; font-weight: 600; color: var(--c-dark);
  white-space: nowrap; line-height: 1.2;
}
.logo-sub {
  display: block; font-size: 12px; color: var(--c-text-muted);
  white-space: nowrap; line-height: 1.2;
}

/* Desktop Nav */
.nav-desktop { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav-desktop ul { display: flex; align-items: center; list-style: none; }
.nav-desktop ul li a {
  display: block; font-size: 12.5px; color: var(--c-text-mid);
  padding: 5px 9px; border-radius: var(--radius-sm);
  white-space: nowrap; transition: color var(--transition), background var(--transition);
}
.nav-desktop ul li a:hover { color: var(--c-dark); background: var(--c-beige); }
.nav-desktop ul li.active > a,
.nav-desktop ul li.current > a {
  color: var(--c-terra); font-weight: 600;
  border-bottom: 2px solid var(--c-terra);
  border-radius: 0; padding-bottom: 3px;
}

/* Header rechts */
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-phone {
  display: none; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--c-slate);
  padding: 5px 12px; border: 1px solid var(--c-beige-dark);
  border-radius: var(--radius-xl); background: var(--c-white);
  white-space: nowrap; transition: background var(--transition);
}
.header-phone:hover { background: var(--c-beige); color: var(--c-slate); }
.header-phone.is-visible { display: flex; }

.btn-termin {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-terra); color: #fff;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 15px; border-radius: var(--radius-xl);
  white-space: nowrap; transition: background var(--transition);
}
.btn-termin:hover { background: var(--c-terra-light); color: #fff; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 40px; height: 40px;
  background: none; border: none; border-radius: var(--radius-sm);
  padding: 8px; transition: background var(--transition);
}
.hamburger:hover { background: var(--c-beige); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--c-dark); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   08  MOBILE NAVIGATION
============================================================ */

.nav-mobile {
  display: none; position: fixed; inset: 60px 0 0 0;
  background: var(--c-white); z-index: 99; overflow-y: auto;
  padding: var(--space-lg) var(--pad) var(--space-xl);
  flex-direction: column; border-top: 1px solid var(--c-beige-dark);
  box-shadow: var(--shadow-lg);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile ul li a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; color: var(--c-text-mid);
  padding: 13px var(--space-md); border-radius: var(--radius);
  border-bottom: 1px solid var(--c-beige-mid);
  transition: background var(--transition), color var(--transition);
}
.nav-mobile ul li a::after { content: '›'; font-size: 18px; color: var(--c-beige-dark); }
.nav-mobile ul li a:hover  { background: var(--c-beige); color: var(--c-dark); }
.nav-mobile ul li.active > a,
.nav-mobile ul li.current > a {
  color: var(--c-terra); font-weight: 600; background: var(--c-terra-pale);
}
.nav-mobile ul li.active > a::after,
.nav-mobile ul li.current > a::after { color: var(--c-terra); }
.nav-mobile-footer {
  margin-top: var(--space-xl); padding-top: var(--space-lg);
  border-top: 1px solid var(--c-beige-dark);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.nav-mobile-tel,
.nav-mobile-termin {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: 13px var(--space-md); border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
}
.nav-mobile-tel    { background: var(--c-slate); color: #fff; }
.nav-mobile-tel:hover { background: var(--c-slate-light); color: #fff; }
.nav-mobile-termin { background: var(--c-terra); color: #fff; justify-content: center; }
.nav-mobile-termin:hover { background: var(--c-terra-light); color: #fff; }


/* ============================================================
   09  PAGE HERO + OVERLAPPING LOGO
============================================================ */

/* Hero-Wrapper */
.page-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
/* Innerer Clip damit das Bild nicht überläuft */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/fileadmin/template/img/teaser/img_startseite_1920.jpg') no-repeat center center;
  background-size: cover;
  z-index: 0;
}
.hero-bg-fallback {
  width: 100%; height: 100%;
  background: url('/fileadmin/template/img/teaser/img_startseite_1920.jpg') no-repeat center center;
  background-size: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(26,30,28,0.05) 0%,
    rgba(26,30,28,0.55) 65%,
    rgba(26,30,28,0.80) 100%
  );
}
.hero-text {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 28px;
}
.hero-eyebrow {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 4px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 4vw, 30px); font-weight: 500;
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  margin-bottom: 4px;
}
.hero-sub {
  font-size: 14px; color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 4px rgba(0,0,0,0.25); margin: 0;
}

/* Main bekommt normalen Abstand oben */
#main-content {
  padding: var(--space-xl) 0 var(--space-2xl);
}
.content-wrapper {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad);
  display: grid; gap: var(--space-xl);
}
.content-main--full    { grid-column: 1 / -1; }
.content-main--twocol  { }


/* ============================================================
   10  BOOTSTRAP/TADA OVERRIDES
   Diese Regeln fangen alte Bootstrap- und tada-Klassen ab
   die noch in den TYPO3-Content-Elementen stecken.
   Schrittweise werden Inhalte auf neue Klassen umgestellt,
   dann können diese Overrides entfernt werden.
============================================================ */

/* Container-Wrapper neutralisieren */
.container,
.container-fluid { width: 100%; padding: 0; }

/* Bootstrap Grid neutralisieren */
.row { display: block; margin: 0; }

/* Spalten: volle Breite als Default */
[class*="col-"] {
  width: 100%;
  padding: 0;
  float: none;
  display: block;
}

/* Bootstrap Spacing-Klassen neutralisieren */
.px-0, .px-1, .px-2, .px-3, .px-4, .px-5 { padding-left: 0 !important; padding-right: 0 !important; }
.py-0, .py-1, .py-2, .py-3, .py-4, .py-5 { padding-top: 0 !important; padding-bottom: 0 !important; }
.mx-0, .mx-1, .mx-2, .mx-3, .mx-4, .mx-5 { margin-left: 0 !important; margin-right: 0 !important; }
.my-0, .my-1, .my-2, .my-3, .my-4, .my-5 { margin-top: 0 !important; margin-bottom: 0 !important; }
.m-0, .m-1, .m-2, .m-3, .m-4, .m-5 { margin: 0 !important; }
.p-0, .p-1, .p-2, .p-3, .p-4, .p-5 { padding: 0 !important; }
.pt-0, .pt-1, .pt-2, .pt-3, .pt-4 { padding-top: 0 !important; }
.pb-0, .pb-1, .pb-2, .pb-3, .pb-4 { padding-bottom: 0 !important; }
.mt-0, .mt-1, .mt-2, .mt-3, .mt-4 { margin-top: 0 !important; }
.mb-0, .mb-1, .mb-2, .mb-3, .mb-4 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: var(--space-md) !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* d-flex neutralisieren */
.d-flex { display: block; }
.align-items-stretch { display: block; }
.align-items-center  { display: block; }

/* Bootstrap Text-Klassen */
.text-center { text-align: center; }
.text-md-left { text-align: left; }
.font-weight-bold { font-weight: 600; }
.text-uppercase { text-transform: uppercase; }
.clearfix::after { content: ''; display: table; clear: both; }

/* img-fluid */
.img-fluid { max-width: 100%; height: auto; display: block; }

/* w-Klassen */
.w-66, .w-33 { width: 100%; }

/* ── tada-content-block → neue Card-Optik ── */
.tada-content-block {
  background: var(--c-white);
  border: 1px solid var(--c-beige-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
}

/* Überschriften innerhalb CEs */
.tada-content-block h2,
.tada-content-block .h_content h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--c-brown-deep);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

/* h_content (farbige Überschriften im alten Design) */
.h_content {
  color: var(--c-brown-deep);
  text-align: left;
}
.h_content h2 {
  font-size: 20px;
  color: var(--c-brown-deep);
  margin-bottom: var(--space-md);
}
/* h-0 = versteckte Überschrift (leer) */
.h-0 { display: none; }

/* Bodytext */
.ce-bodytext p,
.bodytext p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-mid);
  margin-bottom: var(--space-md);
}
.ce-bodytext p:last-child,
.bodytext p:last-child { margin-bottom: 0; }

/* CE beside (Text neben Bild) */
.ce-textpic.beside .row,
.row.beside { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.row.beside .col { flex: 1; min-width: 200px; }
.row.beside .col-md-auto { flex-shrink: 0; }

/* Galerie innerhalb CE */
.gallery { margin: var(--space-lg) 0; }
.gallery .row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); }

/* CE Link (ce-link) */
.ce-link { text-decoration: none; color: inherit; display: block; }
.ce-link:hover .tada-content-block { border-color: var(--c-brown-soft); }
.ce-link-content { cursor: pointer; transition: border-color var(--transition); }


/* ============================================================
   11  TYPO3 CONTENT-ELEMENT-STILE
============================================================ */

/* ── Content Card — Standard-Wrapper für Text-Blöcke ── */
.content-card {
  background: var(--c-white);
  border: 1px solid var(--c-beige-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
}
.content-card h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--c-brown-deep);
  margin-bottom: var(--space-md);
  font-weight: 500;
}
.content-card h3 {
  font-size: 17px;
  color: var(--c-brown-deep);
  margin-bottom: var(--space-sm);
}
.content-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-mid);
  margin-bottom: var(--space-md);
}
.content-card p:last-child { margin-bottom: 0; }
.content-card a { color: var(--c-terra); }
.content-card a:hover { color: var(--c-terra-light); text-decoration: underline; }
.content-card img { border-radius: var(--radius); margin: var(--space-md) auto; }
.content-card ul,
.content-card ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--c-text-mid);
  font-size: 15px;
  line-height: 1.7;
}
.content-card li { margin-bottom: var(--space-xs); }

.frame-default { margin-bottom: var(--space-lg); }

.ce-bodytext p,
.ce-text p { font-size: 15px; line-height: 1.7; color: var(--c-text-mid); }

.ce-image figcaption,
.ce-textpic figcaption {
  font-size: 12px; color: var(--c-text-muted);
  margin-top: 6px; font-style: italic;
}

.ce-table table { width: 100%; font-size: 14px; }
.ce-table th { background: var(--c-beige-mid); color: var(--c-brown-deep); font-weight: 600; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--c-beige-dark); }
.ce-table td { padding: 9px 14px; border-bottom: 1px solid var(--c-beige-mid); color: var(--c-text-mid); }
.ce-table tr:hover td { background: var(--c-beige); }

.ce-uploads li { padding: 8px 0; border-bottom: 1px solid var(--c-beige-mid); font-size: 14px; }
.ce-uploads li a { color: var(--c-terra); }
.ce-uploads li a:hover { color: var(--c-terra-light); text-decoration: underline; }


/* ============================================================
   12  GRID-LAYOUTS (EXT:container)
============================================================ */

/* ── 2 Spalten (50/50) ── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* ── 3 Spalten (33/33/33) ── */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* ── 2 Spalten asymmetrisch (66/33) ── */
.grid-2col-wide {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Einzelne Grid-Spalte */
.grid-col { min-width: 0; }
.grid-col--main { }
.grid-col--side { }

/* ── Team Grids ── */
.team-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: var(--space-lg);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: var(--space-lg);
}
/* ── Gleiche Höhe für Team-Cards in allen Grid-Typen ── */
.grid-2col > .grid-col,
.grid-3col > .grid-col,
.team-grid-2 > .grid-col,
.team-grid > .grid-col {
  display: flex;
  flex-direction: column;
}
.grid-2col > .grid-col > .team-card-body,
.grid-3col > .grid-col > .team-card-body,
.team-grid-2 > .grid-col > .team-card-body,
.team-grid > .grid-col > .team-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.team-card-body .frame {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.team-card-body .ce-textpic {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.team-card-body .ce-bodytext {
  flex: 1;
}

/* ── Kachel-Grid (Leistungen) ── */
.kachel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: var(--space-lg); }
.kachel { background: var(--c-white); border: 1px solid var(--c-beige-dark); border-radius: var(--radius-lg); padding: 22px 18px; transition: border-color var(--transition), transform var(--transition); }
.kachel:hover { border-color: var(--c-brown-soft); transform: translateY(-2px); }
.kachel .kachel-icon { font-size: 28px; margin-bottom: 10px; }
.kachel h3 { font-size: 15px; color: var(--c-brown-deep); margin-bottom: 5px; }
.kachel p  { font-size: 13px; color: var(--c-text-muted); margin: 0; line-height: 1.55; }
.kachel--cta { background: var(--c-terra-pale); border-color: #DEB8AE; }
.kachel--cta h3 { color: var(--c-terra); }

/* ── Team Card — mit Modal-Vita ── */
.team-card-body {
  background: var(--c-white);
  border: 1px solid var(--c-beige-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.team-card-body:hover {
  border-color: var(--c-brown-soft);
  box-shadow: var(--shadow-md);
}

/* Frame-Wrapper */
.team-card-body .frame { margin: 0; }

/* Bild — volle Breite */
.team-card-body .ce-gallery { margin: 0; width: 100%; }
.team-card-body .ce-gallery img {
  width: 100%; height: 220px;
  object-fit: cover; object-position: top center;
  border-radius: 0; display: block;
}

/* Name */
.team-card-body header {
  padding: 12px var(--space-md) 4px;
  text-align: center;
}
.team-card-body header h2,
.team-card-body header h3 {
  font-size: 15px; color: var(--c-brown-deep);
  margin: 0; font-family: var(--font-serif);
}

/* Rolle (erste Zeile Bodytext) */
.team-card-body .ce-bodytext {
  text-align: center;
  padding: 2px var(--space-md) var(--space-md);
}
.team-card-body .ce-bodytext > p:first-child {
  font-size: 12px; color: var(--c-terra);
  font-weight: 600; margin: 0;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Vita verstecken — erscheint im Modal */
.team-card-body .ce-bodytext > p:not(:first-child),
.team-card-body .ce-bodytext ul,
.team-card-body .ce-bodytext blockquote { display: none; }

/* Mehr-lesen Hinweis — nur wenn Vita vorhanden */
.team-card-body .ce-bodytext::after {
  content: 'Vita lesen →';
  display: none;
  font-size: 12px; font-weight: 600;
  color: var(--c-terra); margin-top: 6px;
}
/* Nur anzeigen wenn mehr als ein p-Tag vorhanden */
.team-card-body .ce-bodytext:has(p:nth-child(2))::after {
  display: block;
}

/* ── Team Modal ── */
.team-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(30,22,14,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.team-modal-overlay.is-open {
  opacity: 1; pointer-events: all;
}
.team-modal-box {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  width: 500px; max-width: 100%; max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-beige-dark);
  transform: translateY(16px);
  transition: transform 0.2s ease;
}
.team-modal-overlay.is-open .team-modal-box {
  transform: translateY(0);
}
.team-modal-head {
  display: flex; justify-content: flex-end;
  padding: 10px 14px 0;
}
.team-modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--c-text-muted); font-size: 22px; line-height: 1;
  padding: 4px 8px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.team-modal-close:hover { color: var(--c-dark); background: var(--c-beige); }
.team-modal-img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover; object-position: top center;
  margin: 0 auto var(--space-md);
  border: 3px solid var(--c-beige-dark);
  display: block;
}
.team-modal-name {
  font-family: var(--font-serif); font-size: 20px;
  color: var(--c-brown-deep); text-align: center;
  margin-bottom: 4px;
}
.team-modal-role {
  font-size: 12px; color: var(--c-terra); font-weight: 600;
  text-align: center; text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: var(--space-md);
}
.team-modal-divider {
  height: 1px; background: var(--c-beige-dark);
  margin: 0 var(--space-lg) var(--space-md);
}
.team-modal-vita {
  padding: 0 var(--space-xl) var(--space-xl);
  font-size: 14px; color: var(--c-text-mid); line-height: 1.7;
}
.team-modal-vita p { margin-bottom: var(--space-sm); }
.team-modal-vita p:last-child { margin-bottom: 0; }
.team-modal-vita ul {
  list-style: none;
  margin-bottom: var(--space-md);
}
.team-modal-vita ul li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
  font-size: 13.5px;
  color: var(--c-text-mid);
  line-height: 1.6;
}
.team-modal-vita ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--c-terra);
  font-weight: 600;
}
.team-modal-vita strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-brown-deep);
  margin: var(--space-md) 0 var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Galerie-Grid */
.galerie-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.galerie-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: opacity var(--transition), transform var(--transition); }
.galerie-grid img:hover { opacity: 0.88; transform: scale(1.01); }

/* News-Layout */
.news-layout { display: grid; grid-template-columns: 1fr 290px; gap: var(--space-xl); align-items: start; }
.news-list   { display: flex; flex-direction: column; gap: 14px; }
.news-card { background: var(--c-white); border: 1px solid var(--c-beige-dark); border-radius: var(--radius-lg); padding: 22px 26px; transition: border-color var(--transition); }
.news-card:hover { border-color: var(--c-brown-soft); }
.news-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-xl); margin-bottom: 9px; }
.news-tag--info { background: var(--c-beige-mid); color: var(--c-brown-mid); }
.news-tag--new  { background: var(--c-terra-pale); color: var(--c-terra); }
.news-tag--hint { background: #F5EDDF; color: #7A5020; }
.news-card h3   { font-size: 17px; margin-bottom: 8px; color: var(--c-brown-deep); }
.news-card p    { font-size: 14px; color: var(--c-text-mid); line-height: 1.65; }
.news-read-more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--c-terra); }
.news-read-more:hover { color: var(--c-terra-light); }

/* Abschiedslicht */
.abschied-block { background: var(--c-white); border: 1px solid var(--c-beige-dark); border-left: 4px solid var(--c-terra); border-radius: var(--radius-lg); padding: 20px 22px; display: flex; gap: 16px; }
.abschied-block__icon { font-size: 26px; flex-shrink: 0; }
.abschied-block h3 { font-size: 16px; color: var(--c-brown-deep); margin-bottom: 7px; }
.abschied-block p  { font-size: 13.5px; color: var(--c-text-mid); line-height: 1.65; }

/* Detail-Liste */
.detail-liste { display: flex; flex-direction: column; gap: 12px; }
.detail-item { background: var(--c-white); border: 1px solid var(--c-beige-dark); border-radius: var(--radius-lg); overflow: hidden; }
.detail-item__head { display: flex; align-items: center; gap: 12px; padding: 15px 20px; background: var(--c-beige-mid); border-bottom: 1px solid var(--c-beige-dark); }
.detail-item__head h3 { font-size: 15px; color: var(--c-brown-deep); flex: 1; margin: 0; }
.detail-item__body { padding: 16px 20px; }
.detail-item__body ul { display: flex; flex-direction: column; gap: 7px; }
.detail-item__body li { font-size: 14px; color: var(--c-text-mid); padding-left: 16px; position: relative; line-height: 1.55; }
.detail-item__body li::before { content: '›'; position: absolute; left: 0; color: var(--c-terra); font-weight: 600; font-size: 15px; line-height: 1.4; }
.detail-item__note { margin-top: 12px; font-size: 13px; color: var(--c-text-muted); background: var(--c-beige); border-radius: var(--radius-sm); padding: 10px 14px; line-height: 1.6; font-style: italic; border-left: 3px solid var(--c-beige-dark); }


/* ============================================================
   13  SIDEBAR
============================================================ */

.sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-card { background: var(--c-white); border: 1px solid var(--c-beige-dark); border-radius: var(--radius-lg); overflow: hidden; }
.sidebar-card__head { background: var(--c-beige-mid); padding: 10px 15px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-brown-mid); border-bottom: 1px solid var(--c-beige-dark); }
.sidebar-card__body { padding: 14px 15px; }
.oez-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--c-beige-mid); font-size: 13.5px; }
.oez-row:last-child { border-bottom: none; }
.oez-day  { color: var(--c-text-muted); }
.oez-time { font-weight: 500; color: var(--c-brown-deep); }
.oez-note { font-size: 12px; color: var(--c-text-muted); margin-top: 9px; font-style: italic; line-height: 1.55; }


/* ============================================================
   14  FOOTER
============================================================ */

.site-footer { background: var(--c-dark); padding: 40px 0 0; margin-top: var(--space-2xl); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad) var(--space-xl);
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl); border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-col-head { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: var(--space-md); }
.footer-col-content { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-col-content a { color: rgba(255,255,255,0.6); }
.footer-col-content a:hover { color: rgba(255,255,255,0.9); }
.footer-address { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-address-row { display: flex; align-items: flex-start; gap: 8px; }
.footer-address-row .icon { margin-top: 2px; }
.footer-link { color: rgba(255,255,255,0.6); }
.footer-link:hover { color: rgba(255,255,255,0.9); }
.footer-text-muted { color: rgba(255,255,255,0.35); }
.footer-social { display: flex; gap: 8px; margin-top: var(--space-md); }
.footer-social-link { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); transition: background var(--transition); }
.footer-social-link:hover { background: rgba(255,255,255,0.18); color: #fff; }
.footer-motto { font-family: var(--font-serif); font-style: italic; font-size: 12px; color: rgba(255,255,255,0.25); margin-top: var(--space-md); line-height: 1.65; }
.footer-bottom { background: rgba(0,0,0,0.15); }
.footer-bottom-inner { max-width: var(--max-w); margin: 0 auto; padding: var(--space-md) var(--pad); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-sm); }
.footer-copyright { font-size: 11.5px; color: rgba(255,255,255,0.28); margin: 0; }
.footer-legal { display: flex; gap: var(--space-md); }
.footer-legal ul { display: flex; gap: var(--space-md); list-style: none; }
.footer-legal a,
.footer-legal ul li a { font-size: 12px; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-legal a:hover,
.footer-legal ul li a:hover { color: rgba(255,255,255,0.85); }


/* ============================================================
   15  SCROLL-TO-TOP & KONTAKT-FAB
============================================================ */

.scroll-top {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-slate); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: background var(--transition);
}
.scroll-top:hover { background: var(--c-slate-light); }
.scroll-top[hidden] { display: none; }

.contact-fab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 90; width: 42px; height: 42px;
  background: var(--c-slate); color: #fff; border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: -2px 2px 8px rgba(0,0,0,0.18); transition: background var(--transition);
}
.contact-fab:hover { background: var(--c-slate-light); }


/* ============================================================
   16  MODAL
============================================================ */

.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(30,22,14,0.5); display: flex; align-items: center; justify-content: center; padding: var(--pad); }
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { display: flex; }
.modal-box { background: var(--c-beige); border-radius: var(--radius-lg); width: 460px; max-width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); border: 1px solid var(--c-beige-dark); }
.modal-head { background: var(--c-dark); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-title { color: #fff; font-size: 16px; margin: 0; font-family: var(--font-serif); }
.modal-close-btn { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; padding: 2px 4px; border-radius: var(--radius-sm); display: flex; align-items: center; transition: color var(--transition), background var(--transition); }
.modal-close-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.modal-body { padding: 20px; }
.modal-content-text { font-size: 13.5px; color: var(--c-text-mid); line-height: 1.7; margin-bottom: var(--space-md); background: var(--c-beige-mid); border-radius: var(--radius-sm); padding: 12px; border: 1px solid var(--c-beige-dark); }
.modal-content-text p { margin-bottom: var(--space-sm); }
.modal-oez { width: 100%; margin-bottom: var(--space-sm); }
.modal-oez td { font-size: 13.5px; padding: 5px 0; border-bottom: 1px solid var(--c-beige-dark); color: var(--c-text-mid); }
.modal-oez tr:last-child td { border-bottom: none; }
.modal-oez td:last-child { text-align: right; font-weight: 500; color: var(--c-brown-deep); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.modal-btn { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 12px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; transition: background var(--transition); }
.modal-btn--primary { background: var(--c-slate); color: #fff; }
.modal-btn--primary:hover { background: var(--c-slate-light); color: #fff; }
.modal-btn--secondary { background: var(--c-white); color: var(--c-terra); border: 1px solid var(--c-beige-dark); }
.modal-btn--secondary:hover { background: var(--c-terra-pale); color: var(--c-terra); }
.modal-foot { text-align: center; padding: 0 20px 16px; }
.modal-close-text { background: none; border: none; font-size: 13px; color: var(--c-text-muted); cursor: pointer; padding: 4px 12px; border-radius: var(--radius-sm); font-family: var(--font-sans); transition: color var(--transition), background var(--transition); }
.modal-close-text:hover { color: var(--c-brown-deep); background: var(--c-beige-dark); }


/* ============================================================
   17  TYPO3 GALERIE
============================================================ */

.ce-gallery .ce-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ce-gallery .ce-column { flex: 1; min-width: 150px; }
.ce-gallery .ce-column img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: opacity var(--transition); }
.ce-gallery .ce-column img:hover { opacity: 0.88; }


/* ============================================================
   18  POWERMAIL
============================================================ */

.powermail-form { max-width: 680px; }
.powermail-fieldwrap { margin-bottom: var(--space-md); }
.powermail-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-brown-deep); margin-bottom: 6px; }
.powermail-form input[type="text"],
.powermail-form input[type="email"],
.powermail-form input[type="tel"],
.powermail-form textarea,
.powermail-form select { width: 100%; padding: 10px 14px; font-family: var(--font-sans); font-size: 14px; color: var(--c-text); background: var(--c-white); border: 1px solid var(--c-beige-dark); border-radius: var(--radius); outline: none; transition: border-color var(--transition); appearance: none; }
.powermail-form input:focus,
.powermail-form textarea:focus { border-color: var(--c-slate-light); }
.powermail-form textarea { min-height: 120px; resize: vertical; }
.powermail-form .powermail-submit,
.powermail-form button[type="submit"] { background: var(--c-terra); color: #fff; font-size: 14.5px; font-weight: 600; padding: 11px 28px; border: none; border-radius: var(--radius-xl); cursor: pointer; transition: background var(--transition); }
.powermail-form .powermail-submit:hover { background: var(--c-terra-light); }
.powermail-error { font-size: 12.5px; color: var(--c-terra); margin-top: 4px; }


/* ============================================================
   19  NOTDIENST-TABELLE
============================================================ */

.nd-section { margin-bottom: 18px; }
.nd-section-head { border-radius: var(--radius) var(--radius) 0 0; padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.nd-section--current .nd-section-head { background: var(--c-slate); }
.nd-section:not(.nd-section--current) .nd-section-head { background: var(--c-beige-mid); border: 1px solid var(--c-beige-dark); border-bottom: none; }
.nd-section-head h3 { font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin: 0; }
.nd-section--current .nd-section-head h3 { color: #fff; }
.nd-section:not(.nd-section--current) .nd-section-head h3 { color: var(--c-brown-mid); }
.nd-badge { font-size: 10.5px; padding: 2px 8px; border-radius: 10px; font-weight: 600; background: var(--c-terra); color: #fff; }
.nd-table { width: 100%; border: 1px solid var(--c-beige-dark); border-top: none; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: var(--c-white); }
.nd-row { display: grid; grid-template-columns: 90px 1fr 120px; border-bottom: 1px solid var(--c-beige-mid); transition: background var(--transition); }
.nd-row:last-child { border-bottom: none; }
.nd-row:hover { background: var(--c-beige); }
.nd-row--own { background: #F9ECE8; }
.nd-row--own:hover { background: #f3ddd7; }
.nd-cell { padding: 10px 12px; font-size: 13px; display: flex; align-items: center; }
.nd-cell--date { color: var(--c-text-muted); font-weight: 500; font-size: 12px; }
.nd-cell--tel  { color: var(--c-slate); font-weight: 600; justify-content: flex-end; font-size: 12.5px; }
.nd-cell--tel a { color: inherit; }
.nd-own-name   { color: var(--c-terra); font-weight: 600; }


/* ============================================================
   20  BUTTONS & UTILITY
============================================================ */

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: var(--radius-xl); font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--transition), color var(--transition); border: none; text-decoration: none; }
.btn-primary   { background: var(--c-terra);  color: #fff; }
.btn-primary:hover   { background: var(--c-terra-light); color: #fff; }
.btn-secondary { background: var(--c-slate); color: #fff; }
.btn-secondary:hover { background: var(--c-slate-light); color: #fff; }
.btn-outline   { background: transparent; color: var(--c-terra); border: 1px solid var(--c-terra); }
.btn-outline:hover { background: var(--c-terra-pale); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


/* ============================================================
   21  RESPONSIVE
============================================================ */

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .hamburger   { display: flex; }
  .btn-termin  { display: none; }
}
@media (min-width: 1025px) {
  .nav-mobile { display: none !important; }
  .hamburger  { display: none !important; }
}

@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-layout .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .content-main--twocol { grid-column: 1; }
  .content-sidebar { order: 2; }
}

@media (max-width: 768px) {
  .page-hero  { height: 220px; }
  .hero-title { font-size: 20px; }
  .kachel-grid  { grid-template-columns: repeat(2,1fr); }
  .team-grid    { grid-template-columns: repeat(2,1fr); }
  .galerie-grid { grid-template-columns: repeat(2,1fr); }
  .topbar-text  { display: none; }
  .topbar-inner { justify-content: center; }
  .logo-sub     { display: none; }
  .logo-img     { width: 48px; height: 48px; }
  .row.beside   { flex-direction: column; }
}

@media (max-width: 600px) {
  .news-layout .sidebar { grid-template-columns: 1fr; }
  .abschied-block       { flex-direction: column; gap: 8px; }
  .modal-actions        { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --pad: 14px; }
  .page-hero    { height: 180px; }
  .hero-sub     { display: none; }
  .logo-img     { width: 40px; height: 40px; padding: 4px; }
  .logo-name    { font-size: 13.5px; }
  .kachel-grid  { grid-template-columns: 1fr; }
  .team-grid    { grid-template-columns: 1fr; }
  .galerie-grid { grid-template-columns: 1fr; }
  .nd-row { grid-template-columns: 70px 1fr; }
  .nd-cell--tel { display: none; }
  .nd-row--own .nd-cell--tel { display: flex; grid-column: 1/-1; padding-top: 0; padding-left: 70px; font-size: 12px; }
  .scroll-top  { width: 36px; height: 36px; bottom: 16px; right: 16px; }
  .contact-fab { width: 36px; height: 36px; top: auto; bottom: 64px; transform: none; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal ul { justify-content: center; }
}
