/* ==========================================================================
   CSS Design Tokens & Core Variables (Apple Black & White Aesthetic)
   ========================================================================== */
:root {
    --bg-primary: #ffffff;      /* Pure White */
    --bg-secondary: #f5f5f7;    /* Apple signature light gray */
    --bg-tertiary: #fbfbfd;     /* Apple very light gray section bg */
    
    --accent-red: #000000;      /* Pure Black as primary */
    --accent-red-hover: #1d1d1f;/* Apple dark charcoal */
    --accent-green: #000000;    
    --accent-whatsapp: #000000; 
    --accent-whatsapp-hover: #1d1d1f;
    
    --text-primary: #1d1d1f;    /* Charcoal body/headers */
    --text-secondary: #6e6e73;  /* Muted dark gray */
    --text-on-dark: #ffffff;
    
    --border-color: #d2d2d7;    /* Thin standard Apple gray border */
    --border-color-active: #000000; /* Active border */
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    
    --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 0 2px rgba(0, 0, 0, 1);
    --shadow-glow-green: 0 0 0 2px rgba(0, 0, 0, 1);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.5;
    background-color: var(--bg-primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================================================
   Header Style
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.swiss-flag-badge {
    width: 24px;
    height: 24px;
    background-color: var(--accent-red); /* Pure Black */
    position: relative;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.swiss-flag-badge::before,
.swiss-flag-badge::after {
    content: '';
    position: absolute;
    background-color: white;
}

/* Vertical crossbar */
.swiss-flag-badge::before {
    width: 4px;
    height: 14px;
    left: 10px;
    top: 5px;
}

/* Horizontal crossbar */
.swiss-flag-badge::after {
    width: 14px;
    height: 4px;
    left: 5px;
    top: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.logo-main {
    color: var(--text-primary);
}

.logo-sub {
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.header-phone svg {
    color: var(--text-primary);
    animation: pulseGlow 2s infinite;
}

.lang-switch {
    display: flex;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2px;
    border-radius: 6px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.lang-btn.active, .lang-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Hero & Trust Badges Sections
   ========================================================================== */
.hero-section {
    padding: 6rem 0 4rem 0;
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.badge-express {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.accent-text {
    color: var(--text-secondary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.btn-primary:hover {
    background-color: #1d1d1f;
    border-color: #1d1d1f;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: #86868b;
    transform: translateY(-1px);
}

.btn-outline {
    background: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: #86868b;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 460px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.floating-stat-card {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    animation: floatAnimation 4s ease-in-out infinite;
}

.floating-icon {
    font-size: 1.8rem;
}

.stat-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.stat-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Trust Badges */
.trust-badges-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.trust-card {
    text-align: center;
    padding: 1rem;
}

.trust-icon-wrapper {
    color: var(--accent-red);
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
}

.trust-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Multi-step Interactive Wizard
   ========================================================================== */
.interactive-repair-flow {
    padding: 6rem 0;
}

.flow-step {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.flow-step.active-step {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.8rem;
    color: rgba(0, 0, 0, 0.05);
    background: linear-gradient(180deg, #000 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 0.9;
}

.step-header h2 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.step-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Step 1: Issue Grid */
.issue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.issue-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    outline: none;
}

.issue-card:hover {
    border-color: #000000;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.issue-card:focus-visible {
    outline: 2px solid #000000;
}

.issue-card.selected {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.issue-card.selected p,
.issue-card.selected span {
    color: #ffffff;
}

.issue-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: 50px;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.issue-card:hover .issue-icon {
    color: #ffffff;
    background-color: #000000;
}

.issue-card.selected .issue-icon {
    color: #000000;
    background-color: #ffffff;
}

.issue-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    display: block;
    line-height: 1.35;
}

/* Step 2: Location Finder */
.location-finder-box {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 3.5rem 2.5rem;
    border-radius: 16px;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.zip-input-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

.zip-input-wrapper input {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1.1rem 1.5rem;
    font-size: 1.15rem;
    color: var(--text-primary);
    border-radius: 8px;
    width: 100%;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.zip-input-wrapper input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.or-separator {
    margin: 2rem 0;
    position: relative;
}

.or-separator::before, .or-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background-color: var(--border-color);
}

.or-separator::before { left: 0; }
.or-separator::after { right: 0; }

.or-separator span {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background-color: var(--bg-tertiary);
    padding: 0 10px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.btn-whatsapp {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.btn-whatsapp:hover {
    background-color: #1d1d1f;
    border-color: #1d1d1f;
    transform: translateY(-1px);
}

.geo-icon {
    animation: heartbeat 2.5s infinite;
}

.error-text {
    color: #000000;
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Step 3: Nearest Branch Results */
.results-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
}

.nearest-badge {
    display: inline-flex;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.branch-title {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.branch-distance {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.branch-address-box {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    font-size: 1.05rem;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 30px;
    max-width: fit-content;
}

.status-badge.open {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.status-badge.closed {
    background-color: #ffffff;
    color: #86868b;
    border: 1px solid var(--border-color);
}

.cta-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-fast);
}

.cta-card:hover {
    border-color: #000000;
}

.cta-card-header {
    flex-grow: 1;
}

.cta-card-header h4 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.cta-card-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cta-badge-best {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.cta-card .btn {
    min-width: 200px;
}

/* Branch Hero (Storefront & Rating) */
.branch-hero-container {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.branch-storefront-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.branch-hero-container:hover .branch-storefront-img {
    transform: scale(1.04);
}

.branch-rating-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.branch-rating-badge .stars {
    color: #f5c518;
}

/* CTA button group for split visit layout */
.cta-button-group {
    display: flex;
    gap: 0.75rem;
    min-width: 280px;
}

/* Buttons inside the group must NOT inherit the 200px min-width from
   .cta-card .btn — otherwise two side-by-side buttons overflow and overlap.
   Let them share the row evenly instead. */
.cta-button-group .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Map Column styles */
.map-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#repair-map {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

/* List of all branches below map */
.all-branches-list {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
}

.list-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.branches-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.branch-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1.1rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.branch-item-card:hover {
    border-color: #000000;
}

.branch-item-card.active-branch {
    border-color: #000000;
    background-color: #000000;
    color: #ffffff;
}

.branch-item-card.active-branch p,
.branch-item-card.active-branch h5 {
    color: #ffffff;
}

.branch-item-card.active-branch .status-badge.closed {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.branch-item-info h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.branch-item-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Post instructions slide down card */
.post-instructions-card {
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.4s ease;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.post-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-post-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-post-btn:hover {
    color: var(--text-primary);
}

.post-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.post-steps li {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.post-steps li strong {
    color: var(--text-primary);
}

.post-address {
    display: block;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1.05rem;
    color: #000000;
    font-weight: 700;
    margin-top: 0.5rem;
    width: max-content;
}

.post-footer {
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.text-center {
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
}

.faq-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-subtext {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Keyframes & Animations
   ========================================================================== */
@keyframes pulseGlow {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.15)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.1); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Breakpoints (Mobile First Overrides)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-image-container {
        margin-top: 2rem;
    }
    
    .floating-stat-card {
        left: 20px;
    }
    
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .results-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header-phone {
        display: none; /* Hide phone text on small mobile headers to save space */
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .step-header h2 {
        font-size: 2rem;
    }
    
    .zip-input-wrapper {
        grid-template-columns: 1fr;
    }
    
    .zip-input-wrapper .btn {
        width: 100%;
    }
    
    .location-finder-box {
        padding: 2.5rem 1.25rem;
    }
    
    #btn-geolocation {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }
    
    .cta-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        text-align: center;
    }
    
    .cta-card .btn {
        width: 100%;
    }
    
    .cta-button-group {
        flex-direction: column;
        width: 100%;
        min-width: unset;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .post-address {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .location-finder-box {
        padding: 2rem 1rem;
    }
    
    .floating-stat-card {
        display: none; /* Hide floating card on very small viewports */
    }
}

/* ==========================================================================
   Leaflet Map Custom Overrides (Apple Light Theme)
   ========================================================================== */
.leaflet-container {
    background-color: var(--bg-tertiary) !important;
}

.leaflet-popup-content-wrapper {
    background: #ffffff !important;
    color: #1d1d1f !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid var(--border-color) !important;
}

.leaflet-popup-tip {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
}

/* Spinner styles for the searching state */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid #000000;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Marketplace — "Für Anbieter" link + B2B partner modal
   ========================================================================== */

/* Discreet text link in header */
.header-partner-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.header-partner-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

@media (max-width: 640px) {
    /* On small screens, hide the header link — footer link still available */
    .header-partner-link {
        display: none;
    }
}

/* Modal overlay (fills viewport) */
.partner-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modal-fade-in 0.2s ease;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.partner-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.partner-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    animation: modal-slide-in 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes modal-slide-in {
    from { transform: translateY(20px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.partner-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.partner-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.partner-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.partner-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f5f7 0%, #ebebef 100%);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.partner-modal-header h2 {
    margin: 0 0 0.55rem 0;
    font-size: 1.55rem;
    letter-spacing: -0.01em;
}

.partner-modal-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.5;
}

.partner-benefits {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partner-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.45rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.45;
}

.partner-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1px;
}

.partner-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.partner-form-success {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.partner-form-success h4 {
    margin: 0.6rem 0 0.4rem 0;
    font-size: 1.2rem;
    color: #16a34a;
}

.partner-form-success p {
    margin: 0;
    color: var(--text-secondary);
}

/* Live PLZ → city echo (appears below the postal-code input as you type) */
.zip-city-echo {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    animation: phase-fade-in 0.3s ease;
}
.zip-city-echo strong {
    color: var(--text-primary);
}
.zip-city-echo.loading {
    color: var(--text-secondary);
    letter-spacing: 0.15em;
}
.zip-echo-pin {
    margin-right: 0.2rem;
}

/* Header phone — smooth fade-in once IP geolocation (or cache) resolves
   the correct number. The span starts with visibility:hidden inline. */
.header-phone span {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.header-phone span.visible {
    opacity: 1;
}

/* Branch sidebar card — distance line shown when wizard has computed it */
.branch-item-distance {
    margin: 0.2rem 0 0 0 !important;
    font-size: 0.82rem !important;
    color: #038bee !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   Top Promo Bar (discount code, sticky above header)
   ========================================================================== */
.top-promo-bar {
    background: linear-gradient(90deg, #000 0%, #1d1d1f 100%);
    color: #fff;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 110;
}

.top-promo-bar .promo-code {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.18rem 0.55rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    /* Inherit the body font for consistency with the rest of the site */
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

/* ==========================================================================
   Wizard progress bar (visible once step 1 is active)
   ========================================================================== */
.wizard-progress {
    max-width: 760px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.wizard-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.wizard-step-percent {
    color: var(--text-primary);
    font-weight: 700;
}

.wizard-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    /* Dark gradient — black to charcoal, matches the rest of the Apple-style theme */
    background: linear-gradient(90deg, #000 0%, #2a2a2e 100%);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Phased Loader PRO — multi-ring scanner with shimmer + stats
   (used by step 2 → step 3 transition; replaces the simpler .phased-loader)
   ========================================================================== */
.phased-loader-pro {
    max-width: 520px;
    margin: 2.25rem auto 0 auto;
    padding: 2.25rem 1.75rem 2rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Subtle grid background pattern */
.loader-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    opacity: 0.6;
}

.loader-stage {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Concentric scanner rings (rotate at different speeds + directions) */
.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid transparent;
    transform: translate(-50%, -50%);
}

.ring-outer {
    width: 150px;
    height: 150px;
    border-top-color: rgba(0, 0, 0, 0.55);
    border-right-color: rgba(0, 0, 0, 0.14);
    animation: ring-rotate 3.2s linear infinite;
}

.ring-mid {
    width: 110px;
    height: 110px;
    border-bottom-color: rgba(0, 0, 0, 0.7);
    border-left-color: rgba(0, 0, 0, 0.18);
    animation: ring-rotate-reverse 2.4s linear infinite;
}

.ring-inner {
    width: 72px;
    height: 72px;
    border-top-color: rgba(0, 0, 0, 0.85);
    border-right-color: rgba(0, 0, 0, 0.85);
    animation: ring-rotate 1.6s linear infinite;
}

@keyframes ring-rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ring-rotate-reverse {
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Orbital dots floating around the center */
.loader-orbit {
    position: absolute;
    width: 130px;
    height: 130px;
    animation: ring-rotate 4.5s linear infinite;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

.orbit-dot-1 { top: -4px;   left: 50%; transform: translateX(-50%); }
.orbit-dot-2 { bottom: -4px; left: 50%; transform: translateX(-50%); background: #2a2a2e; box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); }
.orbit-dot-3 { top: 50%;    left: -4px; transform: translateY(-50%); background: #6e6e73; box-shadow: 0 0 10px rgba(0, 0, 0, 0.35); }

/* Central pulsing pin */
.loader-center {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000 0%, #2a2a2e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.55);
    animation: pulse-pro 1.8s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulse-pro {
    0%, 100% { transform: scale(1);     box-shadow: 0 0 0 0   rgba(0, 0, 0, 0.45), 0 6px 22px rgba(0, 0, 0, 0.30); }
    50%      { transform: scale(1.07);  box-shadow: 0 0 0 18px rgba(0, 0, 0, 0),    0 8px 28px rgba(0, 0, 0, 0.38); }
}

/* Phase text — fade-in transition on update */
.loader-phase {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-primary);
    min-height: 1.6em;
    margin-bottom: 1.1rem;
    animation: phase-fade-in 0.45s ease;
    position: relative;
    z-index: 1;
}

@keyframes phase-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Shimmer progress bar */
.loader-bar-shimmer {
    position: relative;
    width: 100%;
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.7rem;
    z-index: 1;
}

.loader-bar-fill {
    height: 100%;
    /* Dark progress with a soft highlight stripe for the shimmer effect */
    background: linear-gradient(
        90deg,
        #000 0%,
        #2a2a2e 40%,
        rgba(255, 255, 255, 0.55) 50%,
        #2a2a2e 60%,
        #000 100%
    );
    background-size: 250% 100%;
    border-radius: 6px;
    transition: width 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
    animation: shimmer-slide 1.8s linear infinite;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

@keyframes shimmer-slide {
    0%   { background-position: 250% 0; }
    100% { background-position: -50% 0; }
}

.loader-percent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.loader-percent #phased-loader-percent {
    font-weight: 700;
    color: var(--text-primary);
}

/* Mini-stats list — items become visible progressively */
.loader-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

.loader-stat {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.loader-stat.visible {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-primary);
}

.loader-stat .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f7, #ebebef);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.loader-stat.visible .stat-icon {
    background: linear-gradient(135deg, #000, #2a2a2e);
    color: #fff;
}

/* ==========================================================================
   Out-of-radius soft notice — reassuring tone, two paths (referral + postal)
   ========================================================================== */
.oor-soft {
    background: linear-gradient(135deg, #f5f5f7 0%, #ebebef 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    margin-bottom: 2rem;
}

.oor-soft-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 1.75rem auto;
}

.oor-soft-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.oor-soft-header h3 {
    margin: 0 0 0.55rem 0;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.oor-soft-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.55;
}

.oor-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 760px) {
    .oor-options {
        grid-template-columns: 1fr;
    }
}

.oor-option-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.oor-option-card-primary {
    border: 1px solid #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.oor-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.oor-option-card h4 {
    margin: 0;
    font-size: 1.1rem;
}

.oor-option-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.5;
    flex-grow: 1;
}

.oor-contact-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    margin-top: 0.25rem;
}

.oor-contact-box code {
    flex-grow: 1;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oor-copy-btn {
    background: #000;
    color: #fff;
    border: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.oor-copy-btn:hover {
    background: #2a2a2e;
}

.oor-copy-btn.copied {
    background: #16a34a;
}

.btn-share-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.25rem;
}

.postversand-inline {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.postversand-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.postversand-badge {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #000 0%, #2a2a2e 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.postversand-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.35rem;
}

.postversand-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.postversand-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field > span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-field input,
.form-field textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #038bee;
    box-shadow: 0 0 0 3px rgba(3, 139, 238, 0.18);
}

.form-actions {
    text-align: center;
    margin-top: 0.5rem;
}

.btn-large {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.form-fineprint {
    margin-top: 0.7rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.postversand-success {
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.success-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    box-shadow: 0 6px 22px rgba(22, 163, 74, 0.3);
}

.postversand-success h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1.2rem;
    color: #16a34a;
}

.postversand-success p {
    margin: 0;
    color: var(--text-secondary);
}

/* ==========================================================================
   Phased loader (LEGACY — kept for safety, no longer used)
   ========================================================================== */
.phased-loader {
    max-width: 480px;
    margin: 2.5rem auto 0 auto;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.phased-loader-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #eaf6ff 0%, #d4ecff 100%);
    color: #038bee;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-soft 1.6s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(3, 139, 238, 0.25); }
    50%      { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(3, 139, 238, 0); }
}

.phased-loader-phase {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    min-height: 1.6em;
    transition: opacity 0.3s ease;
}

.phased-loader-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.7rem;
}

.phased-loader-fill {
    height: 100%;
    background: linear-gradient(90deg, #038bee 0%, #00c2ff 100%);
    border-radius: 4px;
    transition: width 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.phased-loader-percent {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

/* ==========================================================================
   Empfehlung box — dynamic "#1 Experte rund um [Stadt]" headline
   Neutral charcoal-on-grey palette (matches the Apple-style theme).
   ========================================================================== */
.empfehlung-box {
    background: linear-gradient(135deg, #f5f5f7 0%, #ebebef 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.empfehlung-headline {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    line-height: 1.3;
}

.empfehlung-headline strong {
    color: #000;
}

.empfehlung-pin {
    font-size: 1.4rem;
}

.empfehlung-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.9rem;
    line-height: 1.4;
}

.empfehlung-sub strong {
    color: var(--text-primary);
}

.empfehlung-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #fff;
    border: 1px dashed #6e6e73;
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 500;
}

.promo-code-inline {
    /* Inherit the body font for consistency with the rest of the site */
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #000;
    color: #fff;
    padding: 0.18rem 0.55rem;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* ==========================================================================
   12-issue grid (4 cols desktop → 3 tablet → 2 mobile)
   ========================================================================== */
.issue-grid-12 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    margin: 0 auto;
    gap: 1rem;
}

@media (max-width: 1000px) {
    .issue-grid-12 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .issue-grid-12 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Tighter cards when in 12-grid mode so they don't dwarf the page */
.issue-grid-12 .issue-card {
    padding: 1.6rem 1rem;
}

.issue-grid-12 .issue-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
}

.issue-grid-12 .issue-icon svg {
    width: 26px;
    height: 26px;
}

.issue-grid-12 .issue-name {
    font-size: 0.95rem;
}

/* ==========================================================================
   Footer service line styling
   ========================================================================== */
.footer-service-line {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}


/* ===== Postversand form: special row layouts + error + success meta ===== */
.form-row-postcode {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}
.form-row-street {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) {
    .form-row-postcode,
    .form-row-street { grid-template-columns: 1fr; }
}
.form-error {
    background: #fff2f2;
    border: 1px solid #f5c2c2;
    border-left: 3px solid #c0392b;
    color: #8a2424;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.4;
}
.postversand-success-meta {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.92rem;
}
.postversand-success-meta strong {
    color: var(--text-primary);
    font-weight: 700;
}
.postversand-success-meta a {
    color: var(--text-primary);
    text-decoration: underline;
}

/* "How mail-in works" link inside the Postversand form header */
.post-how-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-how-link:hover {
    color: var(--text-secondary);
}

/* Header logo is a link to the home page */
a.logo-area {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}


/* Top promo bar — tight layout on mobile so it doesn't look chunky */
@media (max-width: 600px) {
    .top-promo-bar {
        font-size: 0.74rem;
        padding: 0.3rem 0.5rem;
        letter-spacing: 0;
        line-height: 1.35;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
    }
    .top-promo-bar .promo-code {
        margin-left: 0;
        padding: 0.1rem 0.4rem;
        font-size: 0.68rem;
        letter-spacing: 0.02em;
    }
}


/* Mobile: tighter vertical rhythm + fix wizard step-header overflow.
   In ≤700px: smaller "01" step number, smaller h2, less gap between header
   and content, narrower container padding so cards stop hugging the edges. */
@media (max-width: 700px) {
    .container {
        padding: 0 1rem;
    }
    .hero-section {
        padding: 3rem 0 2rem 0;
    }
    .trust-badges-section {
        padding: 2rem 0;
    }
    .trust-grid {
        gap: 1rem;
    }
    .trust-card {
        padding: 0.75rem;
    }
    .trust-icon-wrapper {
        margin-bottom: 0.75rem;
    }
    .interactive-repair-flow {
        padding: 2.5rem 0;
    }
    /* Wizard step header — was 2.8rem "01" + 2.4rem h2, too big on narrow mobile */
    .step-header {
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }
    .step-num {
        font-size: 1.7rem;
    }
    .step-header h2 {
        font-size: 1.45rem;
        line-height: 1.25;
    }
    .step-header p {
        font-size: 0.95rem;
    }
    /* Issue cards: a touch tighter in 2-col mobile grid */
    .issue-grid-12 .issue-card {
        padding: 1.2rem 0.7rem;
    }
    .issue-grid-12 .issue-name {
        font-size: 0.9rem;
        line-height: 1.25;
    }
    .issue-grid-12 .issue-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 0.7rem;
    }
}
