/*
Theme Name: König Maschinenservice
Theme URI: https://www.koenig-maschinenservice.com/
Author: König Maschinenservice GmbH
Author URI: https://www.koenig-maschinenservice.com/
Description: Individuelles WordPress-Theme für König Maschinenservice GmbH – Maschinenservice, Wartung & Instandhaltung. Fünf Seiten (Home, Wer wir sind, Leistungen, Kontakt, Impressum) inkl. Datenschutz, Kontaktformular via Contact Form 7, responsive und DSGVO-bewusst umgesetzt (keine externen Google-Fonts-Requests, kein automatisches Karten-Embed). Zweisprachig Deutsch/Englisch über ?lang=en – ohne zusätzliches Plugin.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koenig-ms
*/

/* =========================================================
   1. CI-FARBSYSTEM (aus Logo abgeleitet) & GRUNDVARIABLEN
   ========================================================= */
:root {
  --color-red: #E31E24;
  --color-red-dark: #B5161B;
  --color-red-light: #FDECEC;
  --color-gray: #898989;
  --color-gray-dark: #333333;
  --color-anthracite: #24272B;
  --color-gray-light: #F4F4F5;
  --color-gray-lighter: #FAFAFA;
  --color-border: #E5E5E7;
  --color-white: #FFFFFF;
  --color-text: #2B2B2E;
  --color-text-muted: #6B6B6F;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(24,24,27,0.08);
  --shadow-md: 0 8px 24px rgba(24,24,27,0.10);
  --shadow-lg: 0 20px 45px rgba(24,24,27,0.14);

  --container-width: 1180px;
  --transition: 0.2s ease;

  /* Seitlicher Abstand zum Bildschirmrand – wird auf kleinen Geräten
     weiter unten angepasst, damit Texte, Logo und Bilder nie am Rand kleben. */
  --container-pad: 24px;
}

/* =========================================================
   2. RESET & BASIS
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-red-dark); }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-base); color: var(--color-anthracite); line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
button, input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  /* Bei Geräten mit Display-Aussparung (Notch) zusätzlich den sicheren
     Bereich berücksichtigen, damit nichts unter der Rundung verschwindet. */
  padding-left: max(var(--container-pad), env(safe-area-inset-left));
  padding-right: max(var(--container-pad), env(safe-area-inset-right));
}
.section { padding-top: 80px; padding-bottom: 80px; }
.section--sm { padding-top: 48px; padding-bottom: 48px; }
.section--gray { background: var(--color-gray-light); }
.section--dark { background: var(--color-anthracite); color: #E6E6E8; }
.section--dark h2, .section--dark h3 { color: #fff; }

/* Abstand zwischen frei im Backend bearbeitbaren Inhaltsblöcken (Seiteninhalt) */
.content-blocks > * + * { margin-top: 10px; }
.content-blocks .wp-block-group.section-head { margin-bottom: 0; }
.content-blocks h2.wp-block-heading { margin-top: 0; }
.eyebrow {
  display: inline-block;
  color: var(--color-red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.9em;
}
.section-head { max-width: 1080px;  }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--color-text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
}
.btn-primary { background: var(--color-red); color: #fff; }
.btn-primary:hover { background: var(--color-red-dark); color: #fff; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--color-anthracite); }
.btn-outline:hover { background: var(--color-anthracite); border-color: var(--color-anthracite); color: #fff; }
.section--dark .btn-outline { color: #fff; }
.section--dark .btn-outline:hover { background: #fff; color: var(--color-anthracite); }
.btn-white { background: #fff; color: var(--color-anthracite); }
.btn-white:hover { background: var(--color-gray-light); color: var(--color-anthracite); }

/* =========================================================
   3. HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 24px; }
.site-branding img.custom-logo, .site-branding .logo-fallback { height: 76px; width: auto; }
.site-branding a { display: block; }
.header-right { display: flex; align-items: center; gap: 22px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--color-anthracite); font-size: 0.98rem; white-space: nowrap; }
.header-phone svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-red); }

.primary-nav ul { display: flex; gap: 6px; }
.primary-nav a {
  display: block;
  padding: 10px 16px;
  color: var(--color-anthracite);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { background: var(--color-red-light); color: var(--color-red); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--color-anthracite); margin: 5px 0; border-radius: 2px; transition: all var(--transition); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav.is-open { max-height: 480px; }
  .primary-nav ul { flex-direction: column; padding: 10px; gap: 2px; }
  .header-phone span.phone-text { display: none; }
}

/* =========================================================
   4. HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--color-anthracite) 0%, #3a3f45 100%); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 50px; padding-top: 90px; padding-bottom: 90px; }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero .lead { color: #D6D7DA; margin-bottom: 2em; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; max-width: 440px; height: auto; }
.hero-badges { display: flex; gap: 28px; margin-top: 3em; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; color: #C9CACD; font-weight: 600; font-size: 0.92rem; }
.hero-badge svg { width: 22px; height: 22px; color: var(--color-red); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 40px; text-align: left; }
  .hero-art { order: -1; max-width: 280px; margin: 0 auto 20px; }
}

/* =========================================================
   5. CARDS / GRIDS
   ========================================================= */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-red-light);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--color-red);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 0.5em; font-size: 1.15rem; }
.card p { color: var(--color-text-muted); font-size: 0.98rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 0.92rem; }

/* Service list (Leistungen) */
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-border);
}
.service-row:last-child { border-bottom: none; }
.service-row .card-icon { margin-bottom: 0; }
.service-row h3 { margin-bottom: 0.3em; }
.service-row p { color: var(--color-text-muted); margin-bottom: 0.6em; }
.service-row ul { margin-top: 8px; }
.service-row ul li { position: relative; padding-left: 22px; margin-bottom: 6px; color: var(--color-text-muted); font-size: 0.96rem; }
.service-row ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--color-red); border-radius: 50%; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 10px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-red); color: #fff; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.step p { color: var(--color-text-muted); font-size: 0.94rem; }

/* Values grid (Wer wir sind) */
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .card-icon { width: 48px; height: 48px; flex-shrink: 0; margin-bottom: 0; }
.value-item .card-icon svg { width: 24px; height: 24px; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.value-item p { color: var(--color-text-muted); font-size: 0.94rem; margin: 0; }

/* Two-col content w/ media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split-media svg, .split-media img { border-radius: var(--radius-lg); width: 100%; }

/* Photo placeholder block */
.photo-placeholder {
  border: 2px dashed var(--color-gray);
  border-radius: var(--radius-lg);
  background: var(--color-gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 40px 24px;
  min-height: 280px;
  color: var(--color-text-muted);
}
.photo-placeholder svg { width: 44px; height: 44px; color: var(--color-gray); }
.photo-placeholder strong { color: var(--color-anthracite); display: block; margin-bottom: 4px; }
.photo-placeholder span { font-size: 0.88rem; }

/* CTA band */
.cta-band { background: var(--color-red); color: #fff; text-align: center; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #FCE0E1; max-width: 620px; margin: 0 auto 2em; }

/* =========================================================
   6. KONTAKT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { margin: 26px 0; }
.contact-info-list li { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-list svg { width: 22px; height: 22px; color: var(--color-red); flex-shrink: 0; margin-top: 2px; }
.contact-info-list strong { display: block; color: var(--color-anthracite); }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-links a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-gray-light); color: var(--color-anthracite);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--color-red); color: #fff; }
.social-links svg { width: 20px; height: 20px; }
.map-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 6px; }

.contact-form-wrap { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.contact-form-wrap h3 { margin-bottom: 0.3em; }

/* Contact Form 7 styling */
.wpcf7 form p { margin-bottom: 18px; }
.wpcf7 label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.94rem; color: var(--color-anthracite); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-gray-lighter); transition: border-color var(--transition);
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--color-red); background: #fff; }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input[type="submit"] {
  background: var(--color-red); color: #fff; border: none; padding: 14px 30px; border-radius: var(--radius-sm);
  font-weight: 700; cursor: pointer; transition: background var(--transition);
}
.wpcf7 input[type="submit"]:hover { background: var(--color-red-dark); }
.wpcf7 input[type="submit"]:disabled { opacity: 0.6; cursor: progress; }
.wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.9rem; color: var(--color-text-muted); }
.wpcf7-acceptance input { margin-top: 4px; }
.wpcf7-not-valid-tip { color: var(--color-red); font-size: 0.85rem; margin-top: 4px; display: block; }
.wpcf7-response-output { border-radius: var(--radius-sm); padding: 14px 16px !important; margin: 18px 0 0 !important; font-size: 0.92rem; }
.wpcf7-mail-sent-ok { border: 2px solid #2E7D32 !important; color: #2E7D32; }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng, .wpcf7-spam-blocked { border: 2px solid var(--color-red) !important; color: var(--color-red-dark); }
.cf7-missing-notice { background: var(--color-red-light); border: 1px dashed var(--color-red); border-radius: var(--radius-sm); padding: 18px; color: var(--color-red-dark); font-size: 0.92rem; }

/* =========================================================
   7. LEGAL PAGES (Impressum / Datenschutz)
   ========================================================= */
.legal-content { max-width: 820px; }
.legal-content h2 { margin-top: 1.8em; font-size: 1.35rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--color-text-muted); }
.legal-content a { word-break: break-word; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1.1em; }
.legal-note {
  background: var(--color-gray-light); border-left: 4px solid var(--color-red);
  padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 2em;
}

/* =========================================================
   8. FOOTER
   ========================================================= */
.site-footer { background: var(--color-anthracite); color: #C7C8CB; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.1em; }
.footer-col p, .footer-col a { color: #ADAEB2; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.footer-col ul li { margin-bottom: 10px; }
.footer-logo img { height: 54px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer-social a:hover { background: var(--color-red); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.85rem; color: #8B8C90; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #8B8C90; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom ul { display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================
   9. UTILITIES / MISC
   ========================================================= */
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px 20px; z-index: 9999; }
.skip-link:focus { left: 10px; top: 10px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.emergency-strip { background: var(--color-red-dark); color: #fff; text-align: center; padding: 10px 0; font-size: 0.9rem; }
.emergency-strip a { color: #fff; font-weight: 700; text-decoration: underline; }

/* =========================================================
   10. SPRACHUMSCHALTER (Deutsch / Englisch)
   ========================================================= */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--color-gray-light);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.lang-switch a {
  display: block;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  line-height: 1;
}
.lang-switch a:hover { background: var(--color-red-light); color: var(--color-red); }
.lang-switch a.is-active { background: var(--color-red); color: #fff; }
.lang-switch a.is-active:hover { background: var(--color-red); color: #fff; }

/* Umschalter in der Fußzeile (dunkler Hintergrund) */
.footer-bottom .footer-lang { display: flex; align-items: center; }
.lang-switch--footer { background: rgba(255,255,255,0.08); padding: 2px; }
.lang-switch--footer a { color: #ADAEB2; padding: 5px 9px; font-size: 0.74rem; }
.lang-switch--footer a:hover { background: rgba(255,255,255,0.14); color: #fff; }
.lang-switch--footer a.is-active { background: var(--color-red); color: #fff; }

/* Hinweis auf den rechtlich verbindlichen deutschen Text */
.legal-note--lang { border-left-color: var(--color-anthracite); }

/* =========================================================
   11. MOBILE OPTIMIERUNG
   Ziel: überall ausreichend Abstand zum Bildschirmrand,
   angenehme Schrift- und Elementgrößen, keine Überläufe.
   ========================================================= */

/* Der zweite Button im dunklen Hero war bisher dunkel auf dunkel
   und dadurch kaum lesbar – besonders auf dem Handy. */
.hero .btn-outline { color: #fff; }
.hero .btn-outline:hover { background: #fff; border-color: #fff; color: var(--color-anthracite); }

/* Sehr lange Wörter (E-Mail-Adressen, URLs) nicht über den Rand laufen lassen. */
body { overflow-wrap: break-word; word-break: normal; }
img, svg, video, iframe, table { max-width: 100%; }

/* Notfall-Streifen: Text braucht seitlichen Abstand. */
.emergency-strip {
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  line-height: 1.5;
}
.emergency-strip .emergency-strip-text { display: inline-block; }

/* ---------- Tablet / kleines Notebook ---------- */
@media (max-width: 900px) {
  .section { padding-top: 60px; padding-bottom: 60px; }
  .section--sm { padding-top: 40px; padding-bottom: 40px; }
  .section-head { margin-bottom: 36px; }
  .content-blocks > * + * { margin-top: 56px; }

  .header-inner { padding-top: 12px; padding-bottom: 12px; gap: 14px; }
  .site-branding img.custom-logo, .site-branding .logo-fallback { height: 58px; }

  /* Reihenfolge auf dem Handy: Logo | Sprache + Telefon | Menü-Button */
  .site-branding { order: 1; }
  .header-right  { order: 2; gap: 12px; margin-left: auto; }
  .menu-toggle   { order: 3; padding: 10px 4px; }

  /* Aufgeklapptes Menü an den Seitenabstand der Seite angleichen. */
  .primary-nav ul { padding: 12px var(--container-pad); gap: 4px; }
  .primary-nav a { padding: 13px 12px; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 600px) {
  :root { --container-pad: 22px; }

  body { font-size: 16.5px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .section--sm { padding-top: 32px; padding-bottom: 32px; }
  .section-head { margin-bottom: 30px; }
  .content-blocks > * + * { margin-top: 44px; }
  .lead { font-size: 1.06rem; }

  .emergency-strip { font-size: 0.85rem; padding-top: 9px; padding-bottom: 9px; }
  .site-branding img.custom-logo, .site-branding .logo-fallback { height: 50px; }
  .header-phone svg { width: 22px; height: 22px; }

  /* Hero */
  .hero-inner { padding-top: 40px; padding-bottom: 36px; gap: 28px; }
  .hero-art { max-width: 210px; margin: 0 auto 8px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-badges { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 2.2em; }

  /* Karten & Listen */
  .grid { gap: 20px; }
  .card { padding: 26px 22px; }
  .card-icon { width: 50px; height: 50px; margin-bottom: 16px; }
  .service-row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .split { gap: 28px; }
  .photo-placeholder { min-height: 200px; padding: 32px 20px; }

  /* CTA & Kontakt */
  .cta-band { padding-top: 48px; padding-bottom: 48px; }
  .contact-grid { gap: 36px; }
  .contact-form-wrap { padding: 24px 20px; border-radius: var(--radius-md); }
  /* 16px verhindert das automatische Hineinzoomen auf iPhones. */
  .wpcf7 input[type="text"], .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"], .wpcf7 textarea { font-size: 16px; }

  /* Rechtstexte */
  .legal-content h2 { font-size: 1.2rem; margin-top: 1.6em; }

  /* Footer */
  .site-footer { padding: 48px 0 0; }
  .footer-grid { gap: 32px; padding-bottom: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0 26px; }
  .footer-bottom ul { gap: 16px; align-items: center; }
}

/* ---------- Kleine Smartphones ---------- */
@media (max-width: 380px) {
  :root { --container-pad: 20px; }

  .btn { padding: 13px 22px; }
  .site-branding img.custom-logo, .site-branding .logo-fallback { height: 44px; }
  .header-right { gap: 8px; }
  .lang-switch a { padding: 6px 8px; font-size: 0.72rem; }
  .emergency-strip { font-size: 0.8rem; }
  .card { padding: 24px 20px; }
  .contact-form-wrap { padding: 22px 18px; }
}

/* Größere Tippflächen auf Touch-Geräten. */
@media (hover: none) and (pointer: coarse) {
  .footer-col ul li a, .footer-bottom a { display: inline-block; padding: 4px 0; }
  .social-links a { width: 48px; height: 48px; }
}
