/*
Theme Name: Kröninger
Theme URI: https://www.autohaus-kroeninger.de/
Author: Autohaus Kröninger
Author URI: https://www.autohaus-kroeninger.de/
Description: Custom Theme für das Autohaus Kröninger (Audi & VW St. Wendel) — Premium Design mit Tailwind CSS, sticky Header, Standort-Switcher.
Version: 0.69.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kroeninger
Tags: business, custom-logo, custom-menu, featured-images, theme-options, automotive
*/

/* ------------------------------------------------------------------
   Hinweis:
   Das visuelle Styling kommt zu 99 % über Tailwind CDN (siehe header.php).
   Diese style.css ist nur für WordPress-Pflicht-Header und globale
   Overrides, die mit Tailwind-Utility-Klassen nicht abzubilden sind.
------------------------------------------------------------------- */

/* WordPress-Pflicht: Body / Heading-Basics (matcht UX-Pilot-Export) */
body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Inter Tight', sans-serif; letter-spacing: -0.02em; }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------
   Sichere Fläche unten (iPhone-Home-Indikator)

   Die Klasse `pb-safe` wurde in footer.php für die mobile Sticky-Leiste
   benutzt — war aber nirgends definiert. Weder Tailwind noch diese Datei
   kannten sie, sie hat also nie etwas bewirkt. Auf iPhones ohne Home-Taste
   lag die Leiste damit teilweise unter dem Bedienbalken.
   Nachgetragen am 15.09.2026.
------------------------------------------------------------------- */
.pb-safe { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F7F7F8; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* WordPress-spezifische Helper (Admin Bar, Captions, etc.) */
body.admin-bar header#header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar header#header { top: 46px; }
}

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: #6B7280; margin-top: 0.5rem; }

/* ------------------------------------------------------------------
   Floating-Label Inputs (Bewerbungs-Funnel + andere Funnels).
   Pattern: <div.floating-input-wrapper><input.floating-input placeholder=" "><label.floating-label></div>
------------------------------------------------------------------- */
.floating-input-wrapper { position: relative; }

.floating-input {
    display: block;
    width: 100%;
    padding: 1.5rem 1rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #0A0A0A;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.floating-input::placeholder { color: transparent; }
.floating-input:hover  { border-color: #D1D5DB; }
.floating-input:focus  {
    outline: none;
    border-color: #C9A961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}
/* Rote Border nur, wenn der User das Form bereits abgesendet hat oder das Feld verlassen hat. */
.floating-input:user-invalid {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.5;
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform .15s ease-out, color .15s ease-out, font-weight .15s ease-out;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    transform: translateY(-0.7rem) scale(0.78);
    color: #1E1E1E;
    font-weight: 500;
}
.floating-input:focus ~ .floating-label { color: #C9A961; }

/* Textarea-Variante für mehrzeilige Felder */
textarea.floating-input { min-height: 7rem; resize: vertical; padding-top: 1.75rem; }

/* Select-Variante */
select.floating-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 20px;
    padding-right: 2.5rem;
}

/* ------------------------------------------------------------------
   Button-Lift Mikro-Interaktion (Submit-Buttons in Funnels).
------------------------------------------------------------------- */
.btn-lift {
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    will-change: transform;
}
.btn-lift:hover  { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.10); }
.btn-lift:active { transform: translateY(0);    box-shadow: 0 2px 6px rgba(0,0,0,0.10); }

/* ------------------------------------------------------------------
   Checkbox-Animation (DSGVO-Zustimmung etc.).
------------------------------------------------------------------- */
.checkbox-animated { transition: background-color .15s ease, border-color .15s ease; cursor: pointer; }
.checkbox-animated:hover { border-color: #C9A961; }


/* ------------------------------------------------------------------
   FAQ (details/summary): nativen Marker ausblenden, eigenes Chevron.
------------------------------------------------------------------- */
.kroeninger-faq > summary { list-style: none; }
.kroeninger-faq > summary::-webkit-details-marker { display: none; }
.kroeninger-faq > summary::marker             { display: none; content: ''; }

/* Auch alle anderen <details>/<summary> im Theme — Service-FAQ z.B. */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { display: none; content: ''; }

/* ------------------------------------------------------------------
   Google-Reviews: Text-Begrenzung in Cards (max. 6 Zeilen).
------------------------------------------------------------------- */
.kroeninger-review-card .line-clamp-6 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ------------------------------------------------------------------
   Upload-Zone (Schnellbewerbung Step 3 — Lebenslauf optional).
------------------------------------------------------------------- */
.kroeninger-upload-zone {
    display: block;
    border: 2px dashed #E5E7EB;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #F7F7F8;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.kroeninger-upload-zone:hover { border-color: #C9A961; background: #FFFFFF; }
.kroeninger-upload-zone:focus-within {
    border-color: #C9A961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
    outline: none;
}

/* ------------------------------------------------------------------
   Standard-Seiteninhalt (.prose) — Impressum, Datenschutz, AGB usw.

   WARUM DAS HIER STEHT:
   page.php nutzt die Klassen `prose prose-lg`. Die kommen aus dem
   Tailwind-Typography-Plugin — das ist im Tailwind-CDN NICHT enthalten.
   Folge: eingefügte Rechtstexte wurden komplett unformatiert dargestellt,
   ohne Absatzabstände, ohne Listenpunkte, Überschriften nicht vom Fließtext
   zu unterscheiden. Ein Impressum sah damit aus wie eine Textwand — Sabrina
   hat am 05.08.2026 gemeldet, sie „habe es nicht geschafft, dort etwas
   einzufügen". Der Text war da, er war nur nicht lesbar formatiert.
------------------------------------------------------------------- */
.prose { color: #1E1E1E; line-height: 1.7; max-width: 72ch; }
.prose.max-w-none { max-width: none; }

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2.2em;
    margin-bottom: 0.6em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #E5E7EB;
}
.prose h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
}
.prose h4 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.4em;
}
/* Erste Überschrift soll nicht unnötig Abstand nach oben haben */
.prose > h2:first-child,
.prose > h3:first-child { margin-top: 0; }

.prose p { margin: 1.1em 0; }
.prose strong { font-weight: 600; color: #0A0A0A; }

.prose a {
    color: #BB0A30;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:hover { color: #0A0A0A; }

.prose ul,
.prose ol { margin: 1.1em 0; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.4em 0; padding-left: 0.2em; }
.prose li::marker { color: #6B7280; }
.prose ul ul,
.prose ol ol { margin: 0.4em 0; }

.prose blockquote {
    margin: 1.5em 0;
    padding: 0.2em 0 0.2em 1.2em;
    border-left: 3px solid #C9A961;
    color: #6B7280;
}

.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid #E5E7EB; }

.prose table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.prose th,
.prose td {
    border: 1px solid #E5E7EB;
    padding: 0.6em 0.8em;
    text-align: left;
    vertical-align: top;
}
.prose th { background: #F7F7F8; font-weight: 600; }

.prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5em 0; }

/* Lange Adressen, E-Mails und Registernummern nicht überlaufen lassen */
.prose { overflow-wrap: break-word; }

/* ------------------------------------------------------------------
   Job-Detail-Seite: Listen mit Gedankenstrichen statt Punkt-Bullets.
   Greift überall, wo Sopea-Inhalte gerendert werden.
------------------------------------------------------------------- */
.kroeninger-job-content ul,
.prose .kroeninger-job-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0;
}
.kroeninger-job-content ul > li {
    position: relative;
    padding-left: 1.5rem;
    margin: 0.4rem 0;
    line-height: 1.6;
}
.kroeninger-job-content ul > li::before {
    content: "–";
    position: absolute;
    left: 0;
    top: 0;
    color: #1E1E1E;
    font-weight: 600;
}
/* Verschachtelte Listen leicht eingerückt + lighter Strich */
.kroeninger-job-content ul ul > li::before { color: #6B7280; }
.kroeninger-job-content p { margin: 0.5rem 0; line-height: 1.6; }
.kroeninger-job-content p:first-child { margin-top: 0; }
.kroeninger-job-content p:last-child { margin-bottom: 0; }
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f7f7f8; clip: auto !important; clip-path: none;
    color: #0A0A0A; display: block; font-size: 0.875rem;
    height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px;
    text-decoration: none; top: 5px; width: auto; z-index: 100000;
}
