/* =========================================
   Rhone Media – Redesign: Hell & Kundenfreundlich
   ========================================= */

/* --- Foundations --- */
:root {
    --color-bg: #FAFAF8;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F3F2EF;
    --color-text: #1A1A1A;
    --color-text-soft: #555555;
    --color-text-muted: #999999;
    --color-border: #E5E5E0;
    --color-accent: #2563EB;
    --color-accent-soft: #EFF4FF;
    --color-accent-dark: #1D4ED8;
    --color-green: #16A34A;
    --color-green-soft: #F0FDF4;

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.08);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 100px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --nav-h: 64px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}


/* =========================================
   Navigation
   ========================================= */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(250,250,248,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}

.nav--scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text);
}

.nav__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-accent);
    color: white;
    font-weight: 700;
    font-size: .85rem;
}

.nav__logo-text { color: var(--color-text); }

.nav__menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-surface);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    z-index: 999;
    gap: 6px;
}

.nav__menu.open {
    display: flex;
}

.nav__link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-soft);
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
}

.nav__link:hover {
    color: var(--color-text);
    background: rgba(0,0,0,.04);
}

.nav__link--active {
    color: var(--color-accent);
    background: var(--color-accent-soft);
}

.nav__link--cta {
    background: var(--color-accent);
    color: white !important;
    margin-left: 0;
    margin-top: 4px;
    border-radius: var(--radius-full);
    text-align: center;
}

.nav__link--cta:hover {
    background: var(--color-accent-dark) !important;
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =========================================
   Hero – Hell, Klar, Direkt
   ========================================= */

.hero {
    padding: calc(130px + env(safe-area-inset-top, 0px)) 24px 80px;
    background: var(--color-bg);
    overflow: hidden;
}

.hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.hero__content {
    max-width: 620px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--color-green);
    background: var(--color-green-soft);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 32px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(1.3); }
}

.hero__heading {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero__heading-em {
    color: var(--color-accent);
}

.hero__text {
    font-size: 1.15rem;
    color: var(--color-text-soft);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.hero__actions .btn { width: 100%; justify-content: center; }

.hero__trust {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--color-text-soft);
}

.hero__trust-item i {
    color: var(--color-green);
    font-size: .9rem;
}

/* Hero Showcase – Project Thumbnails */
.hero__showcase {
    display: none;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero__card {
    display: block;
    position: absolute;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1), 0 2px 8px rgba(0, 0, 0, .06);
    overflow: hidden;
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
    animation: heroFloat 4s ease-in-out infinite;
}

.hero__card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 48px rgba(37, 99, 235, .18), 0 4px 12px rgba(0, 0, 0, .08);
}

.hero__card img {
    display: block;
    width: 100%;
    height: auto;
}

.hero__card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: .65rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    z-index: 2;
    letter-spacing: .02em;
    white-space: nowrap;
}

.hero__card-label {
    display: block;
    padding: 8px 14px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-text);
    background: #fff;
    text-align: center;
}

.hero__card--1 {
    width: 260px;
    top: 0;
    right: 10px;
    z-index: 3;
    animation-delay: 0s;
}

.hero__card--2 {
    width: 200px;
    top: 20px;
    left: 0;
    z-index: 2;
    animation-delay: -1.3s;
}

.hero__card--3 {
    width: 230px;
    bottom: 10px;
    right: 30px;
    z-index: 1;
    animation-delay: -2.6s;
}


/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all .25s var(--ease);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

.btn--primary:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 4px 16px rgba(37,99,235,.3);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--color-text);
    background: rgba(0,0,0,.02);
}

.btn--full { width: 100%; justify-content: center; }
.btn__loading { display: none; }
.btn--loading .btn__text { display: none; }
.btn--loading .btn__loading { display: inline-flex; align-items: center; gap: 6px; }


/* =========================================
   Section Intro
   ========================================= */

.section-intro {
    margin-bottom: 36px;
}

.section-intro__tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-intro__heading {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}


/* =========================================
   Services – Helle Karten
   ========================================= */

.services {
    padding: 72px 0;
    background: var(--color-surface);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service {
    padding: 28px 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: box-shadow .3s, transform .3s var(--ease);
}

.service:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.service__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.service__desc {
    color: var(--color-text-soft);
    font-size: .95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service__list li {
    position: relative;
    padding-left: 22px;
    font-size: .88rem;
    color: var(--color-text-soft);
}

.service__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 700;
    font-size: .85rem;
}


/* =========================================
   Projects – Kompakte Karten
   ========================================= */

.projects {
    padding: 72px 0;
    background: var(--color-bg);
}

.projects__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .3s, transform .3s var(--ease);
}

.project:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Letztes Projekt (ungerade) zentriert */
@media (min-width: 769px) {
    .projects__grid .project:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 520px;
        justify-self: center;
    }
}

.project__image {
    background: var(--color-surface-alt);
    height: 200px;
    overflow: hidden;
}

.project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s var(--ease);
}

.project:hover .project__image img {
    transform: scale(1.03);
}

.project__info {
    padding: 24px;
}

.project__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project__desc {
    color: var(--color-text-soft);
    font-size: .9rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.project__result {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.project__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project__store-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

.project__store-badge i {
    font-size: .9rem;
}


/* =========================================
   Process / Ablauf
   ========================================= */

.process-section {
    padding: 72px 0;
    background: var(--color-surface);
}

.process__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.process__heading {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-top: 12px;
    margin-bottom: 16px;
}

.process__subtext {
    color: var(--color-text-soft);
    font-size: .95rem;
    line-height: 1.7;
}

.process__right {
    display: flex;
    flex-direction: column;
}

.process__step {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}

.process__step:last-child { border-bottom: none; }

.process__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process__step strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.process__step p {
    font-size: .9rem;
    color: var(--color-text-soft);
    line-height: 1.6;
}


/* =========================================
   Contact
   ========================================= */

.contact {
    padding: 72px 0;
    background: var(--color-bg);
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.contact__heading {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-top: 12px;
    margin-bottom: 16px;
}

.contact__subtext {
    color: var(--color-text-soft);
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.contact__info {
    margin-bottom: 24px;
}

.contact__info-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 10px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: border-color .2s, color .2s;
}

.contact__info-item:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.contact__info-item i { color: var(--color-accent); }


/* Form */
.form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form__field {
    margin-bottom: 18px;
}

.form__field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form__field input,
.form__field select,
.form__field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
    color: var(--color-text-muted);
}

.form__field textarea { resize: vertical; min-height: 100px; }

.form__field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form__checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: .85rem;
    color: var(--color-text-soft);
}

.form__checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-accent);
    flex-shrink: 0;
}

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

.form__message {
    margin-top: 16px;
    font-size: .9rem;
    text-align: center;
}

.form__message--success { color: var(--color-green); }
.form__message--error { color: #DC2626; }


/* =========================================
   Footer
   ========================================= */

.footer {
    padding: 60px 0 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 40px;
}

.footer__brand { max-width: 260px; }
.footer .nav__logo-text { color: var(--color-text); }

.footer__brand p {
    margin-top: 14px;
    font-size: .88rem;
    color: var(--color-text-soft);
    line-height: 1.7;
}

.footer__address {
    margin-top: 10px;
    font-size: .82rem;
    font-style: normal;
    color: var(--color-text-muted);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col strong {
    color: var(--color-text);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.footer__col a {
    font-size: .88rem;
    color: var(--color-text-soft);
    transition: color .2s;
}

.footer__col a:hover { color: var(--color-text); }

.footer__bottom {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    font-size: .82rem;
    color: var(--color-text-muted);
}


/* =========================================
   Back to Top
   ========================================= */

.totop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    color: var(--color-text);
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
    z-index: 100;
}

.totop--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.totop:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-text);
}


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

.faq {
    padding: 72px 0;
    background: var(--color-surface);
}

.faq__grid {
    max-width: 720px;
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-text-muted);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform .2s var(--ease);
}

.faq__item[open] .faq__question::after {
    content: '−';
}

.faq__answer {
    padding: 0 0 20px;
    font-size: .93rem;
    color: var(--color-text-soft);
    line-height: 1.7;
}

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


/* =========================================
   Responsive – Mobile First
   ========================================= */

/* Base = mobile (default styles above).
   Enhance upwards with min-width. */

/* --- 481px+ (Large phones) --- */
@media (min-width: 481px) {
    .hero__actions { flex-direction: row; }
    .hero__actions .btn { width: auto; }
    .footer__links { flex-direction: row; gap: 60px; }
}

/* --- 769px+ (Tablet / small desktop) --- */
@media (min-width: 769px) {
    :root { --nav-h: 72px; }

    .nav__toggle { display: none; }

    .nav__menu {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        padding: 0;
        border-bottom: none;
        box-shadow: none;
        transform: none;
        background: transparent;
    }

    .nav__link {
        width: auto;
        padding: 8px 14px;
        font-size: .88rem;
        white-space: nowrap;
    }

    .nav__link--cta {
        margin-left: 8px;
        margin-top: 0;
        padding: 8px 20px;
    }

    .hero { padding: 160px 24px 100px; }
    .hero__heading { font-size: clamp(2.2rem, 5vw, 3.4rem); }
    .hero__trust { flex-direction: row; gap: 32px; }
    .hero__content { text-align: left; }
    .hero__content .hero__text { margin-left: 0; }
    .hero__content .hero__actions { justify-content: flex-start; }
    .hero__content .hero__trust { justify-content: flex-start; }

    .hero__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: center;
        text-align: left;
    }

    .hero__showcase {
        display: block;
        position: relative;
        height: 440px;
    }

    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .projects__grid { grid-template-columns: repeat(2, 1fr); }

    .service { padding: 36px 32px; }
    .section-intro { margin-bottom: 48px; }

    .services, .projects, .process-section, .contact, .faq { padding: 100px 0; }

    .form { padding: 36px; }
    .form__row { grid-template-columns: 1fr 1fr; }

    .footer__inner { flex-direction: row; gap: 48px; }

    .process__layout {
        grid-template-columns: 5fr 7fr;
        gap: 80px;
    }

    .contact__layout {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
    }
}

/* --- 1025px+ (Desktop) --- */
@media (min-width: 1025px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .projects__grid { grid-template-columns: repeat(2, 1fr); }

    .hero__inner { gap: 64px; }
    .hero__showcase { height: 420px; }
    .hero__card--1 { width: 320px; }
    .hero__card--2 { width: 270px; }
    .hero__card--3 { width: 300px; }
}
