/* ============================================================
   lieferung.css — повністю самодостатній файл для lieferung/
   Включає всі необхідні стилі з style.css + page-specific
   ============================================================ */

/* ===== VARIABLES & RESET ===== */

:root {
    --primary: #1a2b48;
    --accent: #c5a059;
    --accent-btn: #7a5000;
    --text: #333;
    --section-title: #01338b;
    --light: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding: var(--scroll-padding, 2rem);
    scrollbar-color: var(--accent) var(--primary);
    scrollbar-width: thin;
    caret-color: var(--accent);
    caret-shape: underscore;
    accent-color: var(--accent-btn);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    text-wrap: pretty;
}

/* ===== NAVIGATION / HEADER ===== */

.primary-navigation {
    background: rgba(26, 43, 72, 0.95);
    backdrop-filter: blur(.625rem);
    color: var(--white);
    padding: 0 5%;
    height: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 1.875rem rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-decoration: none;
}

.logo-svg {
    width: 3.5rem;
    height: 3.5rem;
    fill: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1;
}

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

.nav-links {
    display: flex;
    gap: 1px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .75rem 1rem;
    border-radius: 5px;
    letter-spacing: .5px;
}

.nav-links a:hover {
    color: var(--white);
    background: var(--accent);
    transition: color 0.3s;
}

.contact-btn-nav {
    background: var(--accent-btn);
    padding: .625rem 1.75rem;
    border-radius: 4px;
}

.headinfo {
    list-style: none;
}

.headtel {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.header-quick-btns {
    display: flex;
    gap: .4rem;
    align-items: center;
    flex-shrink: 0;
}

.quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    text-decoration: none;
    color: var(--white);
    transition: opacity .2s, transform .2s;
}

.quick-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
    color: var(--white);
}

.quick-btn svg {
    flex-shrink: 0;
}

.quick-btn--wa,
.quick-btn--teams {
    background: rgba(197, 160, 89, 0.12);
    border: 1.5px solid rgba(197, 160, 89, 0.45);
    color: var(--accent);
}

.quick-btn--wa:hover,
.quick-btn--teams:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    opacity: 1;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: .25rem;
    flex-shrink: 0;
    line-height: 0;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

.nav-links .nav-mobile-only {
    display: none;
}

.nav-links li.nav-divider {
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin: .25rem 0;
    padding: 0;
    height: 0;
    list-style: none;
}

/* ===== HERO ===== */

.otrymaty {
    background: var(--accent-btn);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background 0.25s ease, color 0.25s ease;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.4s both;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.otrymaty:hover {
    color: var(--primary);
    background: var(--accent);
}

.hero {
    position: relative;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(rgba(26, 43, 72, 0.3), rgba(26, 43, 72, 0.6)), url('/img/botendienst-erklarungsbote-zustellprotokoll-botenzustellung-zustellnachweis-gerichtsfest-brif-brifdienst-002-1536x1024.avif');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    text-align: center;
    padding: 0 5%;
}

.hero-content {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(26, 43, 72, 0.25);
    padding: 2.5rem 3rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 1100px;
    border: 1px solid var(--accent);
    box-shadow: 0 0 0 15px rgba(197, 160, 89, 0.15), 0 8px 32px rgba(26, 43, 72, 0.4);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 7rem);
    line-height: 1.2;
    margin-bottom: 1.75rem;
    animation: fadeInUp 1s ease-out;
    /* font-variant: no-common-ligatures proportional-nums; */
    /* text-transform: capitalize; */
    /* letter-spacing: 2px; */
    /* word-spacing: 5px; */
    text-wrap: balance;
    -webkit-text-stroke: 0;
    text-shadow: 0 2px 20px rgba(26, 43, 72, 0.6);
}

.hero-content h2 {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 4rem;
    opacity: 0.9;
    /* font-variant: small-caps; */
    /* text-transform: capitalize; */
    /* letter-spacing: -0.8px; */
    /* word-spacing: -0.6px; */
    text-wrap: balance;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-trust {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    font-size: 0.875rem;
    opacity: 0.75;
    letter-spacing: 0.02em;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator svg {
    fill: var(--accent);
    width: 3rem;
}

/* ===== SECTIONS ===== */

section {
    padding: 4rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--section-title);
    font-size: 2.2rem;
    font-variant: small-caps;
    text-transform: capitalize;
    letter-spacing: -1.5px;
    word-spacing: -1px;
}

.section-title span {
    display: block;
    width: 10rem;
    height: 3px;
    background: var(--accent);
    margin: .625rem auto;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-.625rem);
    }
}

/* ===== CONTAINER ===== */

.container {
    max-width: 100%;
    padding: 2rem 1.25rem;
    background: var(--light);
}

/* ===== REVIEWS ===== */

.reviews {
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.875rem;
}

.review-card {
    background: var(--white);
    padding: 1.875rem;
    border-radius: 8px;
    box-shadow: 0 5px 1rem rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    text-align: justify;
}

.review-card>div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.review-card-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.review-card-div-name {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-card-name {
    font-weight: bold;
    margin-left: 5px;
}

.review-card-date {
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.review-card-rating {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== FAQ ===== */

.faq-container {
    max-width: 800px;
    margin: auto;
    text-align: justify;
}

.faq-item {
    margin-bottom: .625rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.faq-input {
    display: none;
}

.faq-label {
    display: block;
    padding: 1.125rem;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    background: #fff;
}

.faq-label::after {
    content: '+';
    position: absolute;
    right: .35rem;
    top: .25rem;
    color: var(--accent);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.125rem;
    transition: 0.3s;
    background: #fff;
    color: #666;
}

.faq-input:checked+.faq-label::after {
    content: '-';
}

.faq-input:checked~.faq-content {
    max-height: 200px;
    padding: 1rem 1.125rem;
}

/* ===== PROCESS ===== */

.process {
    background: var(--light);
}

.process-steps {
    padding: 1.25rem;
    max-width: 800px;
    margin: auto;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background: #fff;
    padding: 1.75rem;
    border-left: 3px solid var(--accent);
    text-align: justify;
}

.step-num {
    background: var(--primary);
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1.75rem;
    font-weight: bold;
}

/* ===== CONTACTS ===== */

.contacts-section {
    padding: 5rem 1rem;
    background: var(--white);
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
}

.contacts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: row;
}

.contacts-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 1.563rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--accent);
    flex-shrink: 0;
}

.contact-text h3 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-text p,
.contact-text a {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
}

.map-container {
    flex: 1.5;
    min-width: 300px;
    width: 500px;
    max-width: 600px;
    min-height: 300;
    height: 400px;
    max-height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 .625rem 1.875rem rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== SOCIAL ===== */

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.563rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
}

.social-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.social-btn:hover svg {
    fill: var(--white);
}

.social-btn.tg:hover {
    background: #0088cc;
}

.social-btn.vb:hover {
    background: #7360f2;
}

/* ===== FOOTER ===== */

footer {
    background: var(--primary);
    color: #d1d8e0;
    padding: 3.75rem 5% 1.875rem;
    text-align: center;
    font-size: 0.8rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: .625rem;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-agb {
    display: inline-flex;
    gap: .5rem;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 1rem;
}

.footer-agb a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-agb a:hover {
    color: var(--accent);
}

.footer-social-grid {
    display: flex;
    gap: 1rem;
}

.footer-social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.footer-social-btn svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: #aaa;
}

.footer-social-btn:hover {
    border-color: var(--accent);
    background: rgba(197, 160, 89, 0.1);
}

.footer-social-btn:hover svg {
    fill: var(--accent);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    color: #d3d3d3;
}

/* ===== MODAL ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 72, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--accent);
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}

.modal-content a {
    color: var(--accent);
    text-decoration: underline;
}

body.modal-open {
    overflow: hidden;
}

/* ===== UTILITIES ===== */

input[type="number"]::-webkit-inner-spin-button {
    display: none;
}

.track-btn {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    box-shadow: 0 .625rem 1.563rem rgba(0, 0, 0, 0.05);
}

.track-btn:hover {
    background: var(--accent);
}

#track-result {
    margin-top: 1.875rem;
    padding-top: 1.75rem;
    border-top: 1px dashed #ddd;
    display: none;
    text-align: left;
}

.bg-white {
    background: var(--white);
}

.bg-light {
    background: var(--light);
}

@media print {

    header,
    footer {
        display: none !important;
    }
}

/* ===== SERVICE ROWS ===== */

.service-row {
    max-width: 1200px;
    display: flex;
    align-items: center;
    background: var(--white);
    margin: 4rem auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(2.5rem);
    transition: all 0.9s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    border-left: 3px solid var(--accent);
    border-right: none;
}

.service-row.active {
    opacity: 1;
    transform: translateY(0);
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 3px solid var(--accent);
}

.icon-side {
    flex: 0 0 45%;
    background: rgba(197, 160, 89, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    height: stretch;
    min-height: 450px;
}

.icon-side svg {
    width: 180px;
    height: 180px;
    fill: var(--accent);
}

.text-side {
    flex: 0 0 55%;
    padding: 3.75rem;
}

.text-side h2,
.text-side h3 {
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
}

.text-side p {
    margin-bottom: 1rem;
    color: #555;
    text-align: justify;
}

.text-side ul {
    list-style: none;
}

.text-side li {
    margin-bottom: .625rem;
    padding-left: 25px;
    position: relative;
}

.text-side li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ===== CITIES GRID ===== */

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .625rem;
    margin-top: 1.25rem;
}

.city-tag {
    background: var(--primary);
    color: white;
    padding: 6px .75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.2s, color 0.2s;
}

.city-tag:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ===== CTA ===== */

.cta-section {
    background: var(--white);
    color: var(--primary);
    padding: 5rem 5%;
    text-align: center;
    border-radius: 2rem;
    margin: 3.5rem auto;
    border-left: 5px solid var(--accent);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1200px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1.25rem 3.125rem;
    text-decoration: none;
    border-radius: .625rem;
    font-weight: bold;
    margin-top: 2rem;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 .625rem 1.25rem rgba(0, 0, 0, 0.2);
}

/* ===== CARDS ===== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-.625rem);
    border-bottom-color: var(--accent);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card ul {
    list-style: none;
}

.card li {
    margin-bottom: .625rem;
    padding-left: 25px;
    position: relative;
}

.card p {
    text-align: justify;
}

.card li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ===== CALCULATOR ===== */

.calc-wrapper {
    background: var(--primary);
    color: white;
    padding: 3.75rem 2.5rem;
    border-radius: 2.5rem;
    margin: 5rem auto;
    box-shadow: var(--shadow);
    max-width: 1200px;
    border: 2px solid var(--accent);
}

.calc-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.calc-header h2 {
    color: var(--accent);
    font-size: 2.2rem;
    margin-bottom: .625rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
}

.calc-group label {
    margin-bottom: .75rem;
    font-weight: bold;
    color: #ddd;
}

.calc-group select,
.calc-group input {
    padding: 1rem;
    border-radius: .625rem;
    border: 2px solid rgba(197, 160, 89, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.calc-group select:focus,
.calc-group input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.calc-group select option {
    background: var(--primary);
    color: white;
}

.result-box {
    margin-top: 3.125rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-box .price {
    font-size: 4rem;
    color: var(--accent);
    font-weight: bold;
    display: inline-block;
}

.warning-info {
    max-width: 75%;
    margin: 2rem auto;
    border-top: 1px solid var(--accent);
    color: var(--light);
    padding-top: .75rem;
}

.warning-info strong {
    color: white;
    background-color: var(--accent-btn);
    padding: .25rem 1rem;
    margin: .5rem;
    text-transform: uppercase;
    border-radius: .5rem;
}

.warning-info strong::before {
    content: '*';
    padding-right: .15rem;
}

/* ===== INTRO ===== */

.intro-section {
    padding: 4rem 5%;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.feature-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--accent);
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease, border-bottom-color 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-.625rem);
    border-bottom-color: var(--accent);
}

.feature-box h4 {
    color: var(--primary);
    margin-bottom: .75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: .625rem;
}

.feature-box p {
    color: #555;
    text-align: justify;
}

.result-banner {
    background: var(--primary);
    color: white;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    margin: 2rem auto 0;
    display: flex;
    align-items: center;
    gap: 1.875rem;
    box-shadow: var(--shadow);
    max-width: 1200px;
    border: 2px solid rgba(197, 160, 89, 0.3);
}

.result-banner svg {
    width: 3.5rem;
    height: 3.5rem;
    fill: var(--accent);
    flex-shrink: 0;
}

.cta-inline {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1.25rem 3.125rem;
    text-decoration: none;
    border-radius: .625rem;
    font-weight: bold;
    transition: 0.3s;
    border: 2px solid var(--accent);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 .625rem 1.25rem rgba(0, 0, 0, 0.2);
}

/* ===== TIMELINE ===== */

.timeline-section {
    padding: 4rem 5%;
}

.timeline {
    position: relative;
    padding: 1.25rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--accent);
    opacity: 0.35;
    transform: translateX(-50%);
}

.tl-step {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.tl-step.active {
    opacity: 1;
    transform: translateY(0);
}

.tl-step:nth-child(even) {
    flex-direction: row-reverse;
}

.tl-content {
    width: 45%;
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border-left: 3px solid var(--accent);
    border-bottom: 4px solid transparent;
    transition: transform 0.3s ease, border-bottom-color 0.3s ease;
}

.tl-content:hover {
    transform: translateY(-.5rem);
    border-bottom-color: var(--accent);
}

.tl-content h3 {
    color: var(--primary);
    margin-bottom: .75rem;
    font-size: 1.3rem;
}

.tl-content p {
    color: #555;
    text-align: justify;
    margin-top: .5rem;
}

.tl-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2.75rem;
    height: 2.75rem;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    z-index: 2;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent);
    flex-shrink: 0;
}

/* ===== BRANCHING ===== */

.branching-section {
    padding: 4rem 5%;
    background: var(--white);
}

.branching {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 2rem auto 0;
}

.branch-card {
    padding: 2rem;
    border-radius: 1rem;
    color: white;
    text-align: center;
    box-shadow: var(--shadow);
}

.branch-card h4 {
    font-size: 1.3rem;
    margin-bottom: .75rem;
}

.branch-card p {
    opacity: 0.9;
    text-align: justify;
    font-size: .95rem;
    line-height: 1.6;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.success-card {
    background: #1b5e42;
    border: 2px solid rgba(197, 160, 89, 0.35);
}

.backup-card {
    background: var(--primary);
    border: 2px solid var(--accent);
}

.outcome-box {
    max-width: 1200px;
    margin: 2rem auto 0;
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent);
}

.outcome-box h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: .75rem;
}

.outcome-box p {
    color: #555;
    text-align: justify;
}

/* ===== MEDIA QUERIES ===== */

/* --- Tablet (769px – 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {

    .icon-side {
        min-height: 360px;
    }

    .text-side {
        padding: 2.5rem;
    }

    .text-side h2,
    .text-side h3 {
        font-size: 1.55rem;
    }

    .tl-content {
        width: 43%;
        padding: 1.5rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .intro-grid {
        gap: 18px;
    }

    .calc-wrapper {
        padding: 3rem 2rem;
    }
}

/* --- Mobile (≤ 768px) --- */
@media (max-width: 768px) {

    :root {
        --shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    }

    html {
        scrollbar-width: none;
    }

    body {
        text-wrap: wrap;
    }

    /* Hero mobile — lieferung image (002) */
    .hero {
        background-attachment: scroll;
        background-image: linear-gradient(rgba(26, 43, 72, 0.4), rgba(26, 43, 72, 0.8)), url('/img/botendienst-erklarungsbote-zustellprotokoll-botenzustellung-zustellnachweis-gerichtsfest-brif-brifdienst-002-768x823.avif');
        letter-spacing: -1px;
        word-spacing: -1px;
        text-transform: capitalize;
        font-variant: small-caps;
    }

    .hero-content {
        padding: 1.5rem 1.25rem;
        border-radius: .75rem;
    }

    .hero-content h1 {
        -webkit-text-stroke: 0;
        text-shadow: none;
    }

    .hero-content h2 {
        font-size: 1.25rem;
        font-weight: 300;
        margin-bottom: 1.875rem;
        opacity: 0.9;
        font-variant: normal;
        text-transform: none;
        letter-spacing: 0;
        word-spacing: 0;
    }

    .section-title {
        margin-bottom: 1.75rem;
        font-size: 1.6rem;
        font-variant: normal;
        text-transform: none;
        letter-spacing: -1px;
        word-spacing: -0.4px;
        overflow-wrap: break-word;
        word-break: break-word;
        text-wrap: pretty;
    }

    /* Navigation mobile */
    .primary-navigation {
        height: 3rem;
        padding: 0 1rem;
    }

    .logo-svg {
        width: 2.2rem;
        height: 2.2rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .headinfo {
        display: none;
    }

    .headtel {
        font-size: .8rem;
    }

    nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
    }

    .contact-item {
        margin-left: 2rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(26, 43, 72, 0.98);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
        width: 100%;
        padding: .5rem 0 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: .85rem 1.5rem;
        border-radius: 0;
        font-size: .9rem;
    }

    .nav-links .contact-btn-nav {
        margin: .25rem 1.5rem;
        display: block;
        text-align: center;
        border-radius: 4px;
    }

    .nav-links .nav-mobile-only {
        display: list-item;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Sections */
    section {
        padding: 2rem .75rem;
    }

    .intro-section,
    .timeline-section,
    .branching-section {
        padding: 2.5rem .75rem;
    }

    .contacts-section {
        padding: 2.5rem .75rem;
        max-width: 100%;
    }

    .cta-section {
        padding: 2rem 1rem;
        border-radius: 1rem;
        margin: 1.5rem auto;
    }

    /* Container */
    .container {
        padding: 1rem .75rem;
    }

    /* Service rows */
    .service-row {
        margin: 1.5rem auto;
        border-radius: 12px;
    }

    .service-row,
    .service-row:nth-child(even) {
        flex-direction: column;
    }

    .icon-side,
    .text-side {
        flex: 0 0 100%;
        width: 100%;
    }

    .icon-side {
        min-height: 200px;
        padding: 1.75rem;
    }

    .icon-side svg {
        width: 120px;
        height: 120px;
    }

    .text-side {
        padding: 1.25rem;
    }

    .text-side h2,
    .text-side h3 {
        font-size: 1.4rem;
        margin-bottom: .875rem;
    }

    /* Cards */
    .card-grid {
        gap: 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    .feature-box {
        padding: 1.25rem;
    }

    /* Buttons */
    .btn,
    .cta-button {
        display: block;
        max-width: 100%;
        text-align: center;
        overflow-wrap: break-word;
        word-break: break-word;
        padding: 1rem 1.75rem;
        font-size: .9rem;
    }

    /* Process */
    .process-steps {
        padding: .75rem;
    }

    .step {
        padding: .75rem;
    }

    .step-num {
        margin-right: .75rem;
    }

    /* Intro grid */
    .intro-grid {
        grid-template-columns: 1fr;
    }

    /* Result banner */
    .result-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.25rem;
        gap: 1rem;
    }

    /* Timeline */
    .timeline::before {
        left: .25rem;
    }

    .tl-step {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 3.5rem;
    }

    .tl-content {
        width: 100%;
        padding: 1.25rem;
    }

    .tl-number {
        left: -1rem;
        transform: none;
    }

    /* Branching */
    .branching {
        grid-template-columns: 1fr;
    }

    .outcome-box {
        padding: 1.25rem;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Calculator */
    .calc-wrapper {
        padding: 2rem 1rem;
        border-radius: 1.5rem;
        margin: 2.5rem auto;
    }

    .result-box .price {
        font-size: 2.5rem;
    }

    .warning-info {
        max-width: 100%;
    }

    /* Contacts */
    .contacts-info {
        min-width: 0;
        width: 100%;
        flex: none;
    }

    .map-container {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 280px;
        flex: none;
    }

    /* Footer */
    footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-container {
        gap: 1.5rem;
    }

    .footer-col {
        min-width: 100%;
        text-align: center !important;
    }

    .footer-agb {
        justify-content: center;
    }

    .footer-social-grid {
        justify-content: center !important;
    }
}

/* --- Small phones (≤ 480px) --- */
@media (max-width: 480px) {

    .section-title {
        font-size: 1.35rem;
        letter-spacing: -.8px;
    }

    .service-row {
        margin: 1rem auto;
        border-radius: 8px;
    }

    .icon-side {
        min-height: 160px;
        padding: 1.25rem;
    }

    .icon-side svg {
        width: 80px;
        height: 80px;
    }

    .text-side {
        padding: .875rem;
    }

    .text-side h2,
    .text-side h3 {
        font-size: 1.2rem;
    }

    .card {
        padding: .875rem;
    }

    .feature-box {
        padding: .875rem;
    }

    .tl-content {
        padding: .875rem;
    }

    .tl-step {
        padding-left: 1.75rem;
    }

    .tl-number {
        width: 2.25rem;
        height: 2.25rem;
        font-size: .875rem;
    }

    .outcome-box {
        padding: .875rem;
    }

    .btn,
    .cta-button {
        padding: .875rem 1.25rem;
        font-size: .875rem;
    }

    .result-banner {
        padding: 1rem .875rem;
    }

    .map-container {
        height: 240px;
    }

    .calc-header h2 {
        font-size: 1.6rem;
    }

    .review-card {
        padding: 1.25rem;
    }
}