/* ==========================================================================
   Kaechelen – Design der Unterseiten
   Setzt alle Bausteine der Unterseiten in der Formensprache der index.html
   um (Barlow / Barlow Condensed, Rot #CC0000, Karten mit 1px-Rand,
   12px-Radius, Hover mit rotem Balken). Ergaenzt kaechelen-shell.css.
   Enthaelt keine Inhalte – nur Gestaltung.
   ========================================================================== */

/* ============ VARIABLEN DER UNTERSEITEN AUF DIE STARTSEITE MAPPEN ============
   Die Unterseiten nutzen diese Namen auch in Inline-Styles, deshalb bleiben
   sie erhalten und zeigen nur auf die Werte der Startseite.                  */
:root {
  --red-tint: #fceaea;
  --ink: #141414;
  --ink-soft: #3d3d3d;
  --muted: #6e6e6e;
  --line: #e6e4e2;
  --paper: #f6f5f4;
  --card: #ffffff;
  --radius: 12px;
  --maxw: 1180px;
}

/* ============ BASIS ============ */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: 'Barlow', Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; }
/* Grosse Ueberschriften in der Schmalschrift der Startseite */
h1, h2 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.005em;
}

a { color: var(--red); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--red-dark); text-decoration: none; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Inhaltsbereich – Abschnitte laufen ueber die volle Breite,
   ihr Inhalt sitzt auf 1180px wie auf der Startseite */
main {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
main > section { padding-left: 32px; padding-right: 32px; }
main > section > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

/* ============ HERO (dunkel, wie auf der Startseite) ============ */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, var(--anthracite) 60%, #2e2a2a 100%);
  color: #fff;
  padding: 84px 0 82px;
  position: relative;
  overflow: hidden;
  border: none;
}
.hero::before {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,0,0,0.25) 0%, rgba(204,0,0,0) 70%);
}
.hero::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 6px; background: var(--red);
}
.hero > main, .hero > .hero-content { position: relative; z-index: 2; }
.hero > .hero-content {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.hero-text h1 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.005em;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  color: #fff;
  margin-bottom: 20px;
}
.hero-text h1 .highlight { color: var(--red); }
.hero-text p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 16px;
}
.hero-text .subline {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.hero-cta, .hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-visual, .hero-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  background: transparent;
}
.hero-visual {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; min-height: 320px;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Variante für Grafiken/Illustrationen: kein Beschnitt, natürliches Seitenverhältnis */
.hero-visual.is-graphic { aspect-ratio: auto; min-height: 0; padding: 10px; }
.hero-visual.is-graphic img {
  width: auto; max-width: 100%;
  height: auto; max-height: 420px;
  object-fit: contain; margin: 0 auto; border-radius: 6px;
}
.hero-image img { width: 100%; height: auto; display: block; }
.hero img { max-width: 100%; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Barlow', Arial, sans-serif;
  border-radius: 4px;
  border: none;
  background: var(--red);
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(204,0,0,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(204,0,0,0.38);
  text-decoration: none;
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
  box-shadow: none;
}

/* ============ SEKTIONEN UND UEBERSCHRIFTEN ============ */
.section { padding: 84px 0; }
.section:last-child { border-bottom: none; }

.section .section-heading,
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-heading h2 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.005em;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--black);
  margin-bottom: 12px;
}
.section-heading p { font-size: 17px; color: var(--gray-mid); }

/* Abschnitte mit eigenem Hintergrund laufen als Band ueber die volle Breite */
.meetings-section, .diktieren-section { background: var(--gray-soft); }

/* ============ KARTEN (gemeinsames Grundmuster wie auf der Startseite) ============ */
.service-card, .product-card, .program-card, .feature-box,
.team-member, .contact-card, .question-box {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card::before, .product-card::before, .program-card::before,
.feature-box::before, .team-member::before, .contact-card::before,
.question-box::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.service-card:hover, .product-card:hover, .program-card:hover,
.feature-box:hover, .team-member:hover, .contact-card:hover,
.question-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before, .product-card:hover::before, .program-card:hover::before,
.feature-box:hover::before, .team-member:hover::before, .contact-card:hover::before,
.question-box:hover::before { transform: scaleX(1); }

.service-card { padding: 34px 26px 30px; text-align: center; }
.program-card { padding: 34px 28px 30px; }
.feature-box  { padding: 34px 28px 30px; text-align: center; }
.product-card { padding: 28px 26px 30px; display: flex; flex-direction: column; }
.team-member  { padding: 32px 26px; text-align: center; }
.contact-card { padding: 32px 26px; text-align: center; }
.question-box { padding: 30px 26px; }

.service-card h3, .program-card h3, .product-card h3, .contact-card h3 {
  font-size: 19px; font-weight: 700; color: var(--black);
  margin-bottom: 8px; line-height: 1.3; word-wrap: break-word;
}
.service-card p, .program-card p, .product-card p, .contact-card p,
.feature-box p {
  font-size: 14.5px; color: var(--gray-mid); line-height: 1.6; word-wrap: break-word;
}
.product-card p { flex-grow: 1; }
.feature-box h4 { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 10px; }

.service-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--red-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
  margin: 0 auto 20px;
}

.product-image {
  width: 100%; height: 170px;
  background: var(--gray-soft);
  border-radius: 10px;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; }

/* ============ RASTER ============ */
.services-grid, .services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.services { margin-bottom: 48px; }
.products-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-bottom: 48px; }
.program-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-bottom: 32px; }
.features-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.features-list  { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.team-grid      { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.contact-cards  { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-bottom: 48px; }
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.meetings-questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-bottom: 48px; }
.gallery, .gallery-grid, .image-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px; margin-bottom: 32px;
}

/* ============ FLAECHIGE INFOBLOECKE ============ */
.features, .highlights, .info-box, .meetings-intro, .diktieren-content {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 38px 32px;
  margin-bottom: 28px;
}
.features h3, .highlights h3, .info-box h3, .meetings-intro h3, .diktieren-content h3 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 25px;
  color: var(--black);
  margin-bottom: 20px;
}
.meetings-intro p, .diktieren-content p {
  color: var(--gray-dark); font-size: 15.5px; line-height: 1.75; margin-bottom: 14px;
}

.feature-item { padding-bottom: 20px; border-bottom: 1px solid var(--gray-border); }
.feature-item:last-child { padding-bottom: 20px; border-bottom: 1px solid var(--gray-border); }
.feature-item h4 { font-size: 17px; font-weight: 700; color: var(--black); margin-bottom: 7px; }
.feature-item p { font-size: 14.5px; color: var(--gray-mid); line-height: 1.6; }

.info-box ul, .diktieren-content ul { list-style: none; padding-left: 0; }
.info-box li, .diktieren-content li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  color: var(--gray-dark); font-size: 15.5px; line-height: 1.65;
}
.info-box li::before, .diktieren-content li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 700;
}

.highlight-item { text-align: center; }
.highlight-item strong {
  display: block;
  font-size: 18px; font-weight: 700; color: var(--red);
  margin-bottom: 7px;
}
.highlight-item p { font-size: 14.5px; color: var(--gray-mid); line-height: 1.6; }

/* Hervorgehobene Hinweisbloecke */
.katalog-highlight, .benefits-highlight {
  background: var(--gray-soft);
  border: 1px solid var(--gray-border);
  border-top: 4px solid var(--red);
  border-radius: 12px;
  padding: 38px 32px;
  margin-bottom: 28px;
  text-align: center;
}
.katalog-highlight h3, .benefits-highlight h3 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700; font-size: 27px; color: var(--black); margin-bottom: 12px;
}
.katalog-highlight p, .benefits-highlight p {
  font-size: 16px; color: var(--gray-dark); line-height: 1.75; margin-bottom: 14px;
}

.question-box strong {
  display: block;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 12px;
}
.question-box p { font-size: 15px; color: var(--gray-dark); line-height: 1.65; }

/* ============ GALERIEN ============ */
.gallery-item {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-item h4 {
  font-size: 16px; font-weight: 700; color: var(--black);
  padding: 15px 16px 17px;
}

.meetings-gallery { margin-top: 48px; }
.meetings-gallery-intro { text-align: center; margin-bottom: 40px; }
.meetings-gallery-intro p {
  color: var(--gray-mid); font-size: 16px; max-width: 700px; margin: 0 auto 20px;
}
.meetings-visual { margin-top: 48px; text-align: center; }
.meetings-visual img {
  max-width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--gray-border); box-shadow: var(--shadow-md);
}

/* ============ PROZESS-SCHRITTE ============ */
.process-step {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center; margin-bottom: 52px;
}
.process-step:nth-child(even) { direction: rtl; }
.process-step:nth-child(even) > * { direction: ltr; }
.process-content h3 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700; font-size: 28px; color: var(--black); margin-bottom: 12px;
}
.process-content p {
  color: var(--gray-dark); font-size: 15.5px; line-height: 1.8; margin-bottom: 18px;
}
.process-image {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gray-border); box-shadow: var(--shadow-md);
}
.process-image img { width: 100%; height: auto; display: block; }

/* ============ TEAM UND KONTAKT ============ */
.team-section {
  margin-top: 56px; padding-top: 56px;
  border-top: 1px solid var(--gray-border);
}
.team-section h3 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700; font-size: 27px; color: var(--black);
  text-align: center; margin-bottom: 30px;
}
.team-member h4 { font-size: 19px; font-weight: 700; color: var(--black); margin-bottom: 5px; }
.team-member .role {
  font-size: 12.5px; color: var(--red); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.team-member p { font-size: 14.5px; color: var(--gray-mid); margin-bottom: 5px; }
.team-member a, .contact-card a { color: var(--red); font-weight: 600; }
.team-member a:hover, .contact-card a:hover { color: var(--red-dark); text-decoration: none; }

/* ============ ROTE AKTIONSBLOECKE (wie „Wir sind nebenan") ============ */
main > .cta-section { border-radius: 0; margin-bottom: 0; }
main > .cta-section > * { max-width: 620px; }

.cta-section, .shop-teaser {
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  padding: 66px 40px;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before, .shop-teaser::before {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.cta-section::after, .shop-teaser::after {
  content: ""; position: absolute; left: -60px; bottom: -140px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(0,0,0,0.08);
}
.cta-section > *, .shop-teaser > * { position: relative; z-index: 2; }
.cta-section h2, .shop-teaser h2 {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 700; letter-spacing: 0.005em;
  font-size: clamp(28px, 3.4vw, 38px);
  color: #fff; margin-bottom: 14px;
}
.cta-section p, .shop-teaser p {
  font-size: 17px; color: rgba(255,255,255,0.9); line-height: 1.7;
  max-width: 600px; margin: 0 auto 28px;
}
.cta-section .btn, .shop-teaser .btn {
  background: #fff; color: var(--red); font-weight: 700;
  padding: 15px 32px; font-size: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.cta-section .btn:hover, .shop-teaser .btn:hover {
  background: #fff; color: var(--red-dark);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { aspect-ratio: auto; min-height: 0; }
  .hero-visual img { height: auto; }
  .process-step { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .process-step:nth-child(even) { direction: ltr; }
  .meetings-section, .diktieren-section { padding: 44px 22px; }
}

@media (max-width: 640px) {
  main > section, .hero > .hero-content { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 56px 0 60px; }
  .section { padding: 56px 0; }
  .section-heading { margin-bottom: 36px; }
  .hero-cta .btn, .hero-buttons .btn { width: 100%; max-width: 320px; }
  .hero-cta, .hero-buttons { flex-direction: column; }
  .features, .highlights, .info-box, .meetings-intro, .diktieren-content,
  .katalog-highlight, .benefits-highlight { padding: 26px 20px; }
  .cta-section, .shop-teaser { padding: 44px 22px; }
  .team-section { margin-top: 40px; padding-top: 40px; }
}
