/* =========================================================
   turkeihaartransplantation.com – Ergänzungen zum Theme
   ========================================================= */

/* Montserrat als WOFF2-Subset (Latin + Türkisch/Deutsch, ~18 KB statt ~325 KB TTF je Schnitt).
   Spätere @font-face-Regeln überschreiben die TTF-Definitionen aus style.css. */
@font-face{font-family:Montserrat;font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/montserrat/woff2/Montserrat-Light.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/montserrat/woff2/Montserrat-Regular.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/montserrat/woff2/Montserrat-Medium.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/montserrat/woff2/Montserrat-SemiBold.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/montserrat/woff2/Montserrat-Bold.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/montserrat/woff2/Montserrat-ExtraBold.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/montserrat/woff2/Montserrat-Italic.woff2) format("woff2")}
@font-face{font-family:Montserrat;font-style:italic;font-weight:700;font-display:swap;src:url(../fonts/montserrat/woff2/Montserrat-BoldItalic.woff2) format("woff2")}

/* CLS: metrisch an Montserrat angeglichener Ersatzfont, damit beim Font-Swap
   (font-display: swap) die Zeilenumbrüche im Hero gleich bleiben */
@font-face{font-family:"Montserrat Fallback";src:local("Arial"),local("Helvetica"),local("Liberation Sans");size-adjust:112.83%;ascent-override:85.79%;descent-override:22.25%;line-gap-override:0%}
html[data-theme-color=skin-7]{--font-base:"Montserrat","Montserrat Fallback",sans-serif;--font-title:"Montserrat","Montserrat Fallback",sans-serif}

/* Icon-CSS wird asynchron geladen: Platz für Icons vorab reservieren (kein Layout-Sprung) */
:where(.feather,.fa,.fas,.far,.fab,.fa-solid,.fa-regular,.fa-brands){display:inline-block;min-width:1em;line-height:1;font-style:normal}

/* Barrierefreiheit */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.focus\:not-sr-only:focus{position:fixed;top:10px;left:10px;width:auto;height:auto;padding:10px 16px;margin:0;clip:auto;background:#fff;color:var(--secondary);z-index:99999;border-radius:8px}

/* Logo: hell/dunkel (Innenseiten mit dunklem Banner) */
.site-logo img{max-height:52px;width:auto}
.site-logo .logo-white{display:none}
.site-logo-inner .logo-default{display:none}
.site-logo-inner .logo-white{display:inline-block}
.sticky-header-wrapper.is-fixed .site-logo-inner .logo-default{display:inline-block}
.sticky-header-wrapper.is-fixed .site-logo-inner .logo-white{display:none}
.lang-switch-btn{display:inline-flex;align-items:center;gap:8px;box-sizing:border-box;width:auto;min-width:max-content;white-space:nowrap;padding:8px 14px;border:1px solid currentColor;border-radius:999px;font-size:14px;font-weight:600;line-height:1;text-transform:uppercase;cursor:pointer;background:transparent;color:inherit}
.lang-switch-btn img,.lang-switch-btn svg{flex-shrink:0;display:block}
.lang-switch-btn svg{transition:transform .25s}
.lang-switch:hover .lang-switch-btn svg,.lang-switch:focus-within .lang-switch-btn svg{transform:rotate(180deg)}

/* Lead-Text */
.lead-text{font-size:1.15rem;line-height:1.7;color:var(--secondary);font-weight:500;margin-bottom:1.75rem}

/* Inhalte aus dem Admin-Editor (CKEditor) */
.entry-content{color:var(--body-color);font-size:1.0625rem;line-height:1.8}
.entry-content > *:first-child{margin-top:0}
.entry-content h2{font-size:1.75rem;line-height:1.3;font-weight:700;color:var(--heading-color);margin:2.5rem 0 1rem}
.entry-content h3{font-size:1.35rem;line-height:1.35;font-weight:700;color:var(--heading-color);margin:2rem 0 .75rem}
.entry-content h4{font-size:1.15rem;font-weight:600;color:var(--heading-color);margin:1.5rem 0 .5rem}
.entry-content p{margin:0 0 1.15rem}
.entry-content a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.entry-content a:hover{color:var(--secondary)}
.entry-content strong{color:var(--heading-color);font-weight:600}
.entry-content ul,.entry-content ol{margin:0 0 1.25rem;padding-inline-start:0}
.entry-content ul > li{position:relative;padding-inline-start:1.9rem;margin-bottom:.6rem;list-style:none}
.entry-content ul > li::before{content:"";position:absolute;inset-inline-start:0;top:.45em;width:1.1rem;height:1.1rem;border-radius:50%;background:linear-gradient(90deg,#EF578D 0%,#FF8C70 100%);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='black'/%3E%3Cpath d='m6 10 3 3 5-6' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='black'/%3E%3Cpath d='m6 10 3 3 5-6' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.entry-content ol{counter-reset:step}
.entry-content ol[start]{counter-reset:none}
.entry-content ol > li{position:relative;padding-inline-start:2.6rem;margin-bottom:.9rem;list-style:none;counter-increment:step;min-height:1.9rem}
.entry-content ol > li::before{content:counter(step);position:absolute;inset-inline-start:0;top:0;width:1.9rem;height:1.9rem;border-radius:50%;background:linear-gradient(90deg,#EF578D 0%,#FF8C70 100%);color:#fff;font-weight:700;font-size:.9rem;display:flex;align-items:center;justify-content:center}
.entry-content blockquote{background:var(--light);border-inline-start:4px solid var(--primary);border-radius:14px;padding:1.25rem 1.5rem;margin:1.75rem 0;color:var(--secondary);font-weight:500}
.entry-content blockquote p:last-child{margin-bottom:0}
.entry-content img{max-width:100%;height:auto;border-radius:16px;margin:1.5rem 0}
.entry-content table{width:100%;border-collapse:collapse;margin:1.5rem 0;font-size:.975rem;display:block;overflow-x:auto}
.entry-content table th,.entry-content table td{border:1px solid rgba(0,46,113,.12);padding:.7rem .9rem;text-align:start;vertical-align:top}
.entry-content table th{background:var(--secondary);color:#fff;font-weight:600}
.entry-content table tr:nth-child(even) td{background:var(--light)}
.entry-content .info-box{background:var(--light);border-radius:16px;padding:1.25rem 1.5rem;margin:1.75rem 0}
.entry-content .info-box > *:last-child{margin-bottom:0}

/* Vorher/Nachher-Collagen */
.entry-content .before-after-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:1.5rem 0 1rem}
.entry-content .before-after-grid figure{margin:0;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 10px 30px rgba(0,46,113,.08)}
.entry-content .before-after-grid a{display:block;text-decoration:none}
.entry-content .before-after-grid img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#f6f8fc;margin:0;border-radius:0}
.entry-content .before-after-grid figcaption{padding:.75rem 1rem;font-size:.9rem;color:var(--secondary);font-weight:500}
.entry-content .ba-note{font-size:.85rem;opacity:.8}
@media (max-width:640px){.entry-content .before-after-grid{grid-template-columns:1fr}}

/* Quellenangaben */
.entry-content .sources{margin-top:2.5rem;padding:1.5rem 1.75rem;border-radius:16px;background:#f6f8fc;border:1px solid rgba(0,46,113,.08);font-size:.92rem}
.entry-content .sources h2,.entry-content .sources h3{font-size:1.1rem;margin:0 0 .75rem}
.entry-content .sources ol > li{padding-inline-start:2rem;margin-bottom:.45rem;min-height:0}
.entry-content .sources ol > li::before{width:1.4rem;height:1.4rem;font-size:.75rem;background:var(--secondary)}
.entry-content .sources a{word-break:break-word}

/* Formular */
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.lead-form .iti{width:100%}
.select-items,.iti__country-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.lead-form .iti__tel-input{padding-left:96px!important}
.lead-form .iti__selected-country{background:transparent}
.lead-form textarea{resize:vertical}
.bg-linear-\(--primary-2-gradient\) .lead-form a,.lead-form .text-white\/85 a{color:#fff;text-decoration:underline}
.lead-form a{color:var(--primary);text-decoration:underline}

/* WhatsApp-Button */
.whatsapp-float{position:fixed;left:20px;bottom:20px;z-index:9999;width:60px;height:60px;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 25px rgba(37,211,102,.4);transition:transform .3s,box-shadow .3s}
.whatsapp-float::before{content:"";position:absolute;inset:0;border-radius:50%;background:#25D366;z-index:-1;animation:waPulse 2.2s ease-out infinite}
.whatsapp-float:hover{transform:scale(1.07);color:#fff;box-shadow:0 14px 30px rgba(37,211,102,.5)}
.whatsapp-float svg{display:block}
.whatsapp-float-label{position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%) translateX(-6px);white-space:nowrap;background:#fff;color:#075E54;font-size:14px;font-weight:600;padding:8px 14px;border-radius:999px;box-shadow:0 8px 20px rgba(0,0,0,.12);opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}
.whatsapp-float:hover .whatsapp-float-label,.whatsapp-float:focus-visible .whatsapp-float-label{opacity:1;transform:translateY(-50%) translateX(0)}
@keyframes waPulse{0%{transform:scale(1);opacity:.55}100%{transform:scale(1.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.whatsapp-float::before{animation:none}}
@media (max-width:575px){.whatsapp-float{bottom:80px;left:14px;width:54px;height:54px}.whatsapp-float svg{width:30px;height:30px}.whatsapp-float-label{display:none}}

/* Banner */
.page-banner{background-color:var(--secondary)}
