/* ====== Base / Reset ====== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.5;
    color: #111827;
    background: #f6f7fb;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a.link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

:root {
    --sidebar-w: 280px;
    --radius: 14px;
    --shadow: 0 10px 28px rgba(0, 0, 0, .10);
    --border: 1px solid rgba(17, 24, 39, .10);

    --bg: #f6f7fb;
    --panel: #ffffff;
    --muted: #6b7280;

    --primary: #ef4444; /* modern red */
    --primary-700: #dc2626;
}

/* ====== Layout ====== */
[hidden] {
    display: none !important;
}

.app {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--panel);
    border-right: var(--border);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar__logo {
    display: grid;
    place-items: center;
    padding: 10px;
    border-radius: var(--radius);
    border: var(--border);
    background: #fff;
}

.sidebar__logo img {
    width: 140px;
    height: auto;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 2px;
}

.nav__link {
    display: flex;
    align-items: center;
    padding: 12px 12px;
    border-radius: 12px;
    border: var(--border);
    background: #fff;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.nav__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .06);
    border-color: rgba(17, 24, 39, .18);
}

.nav__link.is-active {
    border-color: rgba(239, 68, 68, .35);
    box-shadow: 0 12px 24px rgba(239, 68, 68, .10);
}

.sidebar__footer {
    margin-top: auto;
    padding-top: 10px;
}

.sidebar__meta {
    border: var(--border);
    background: #fff;
    border-radius: var(--radius);
    padding: 12px;
}

.meta__title {
    font-weight: 700;
    margin-bottom: 6px;
}

.meta__line {
    color: var(--muted);
    font-size: 14px;
}

.content {
    padding: 26px 26px 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section {
    margin-top: 26px;
}

.section h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

/* ====== Hero ====== */
.hero {
    background: var(--panel);
    border: var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;

    display: grid;
    grid-template-columns: 1.1fr .9fr;

    min-height: unset;
    max-height: none; /* WICHTIG: entfernen */
}

.hero__media {
    height: 360px; /* Desktop Bildhöhe */
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* ggf. center top */
}

.hero__copy {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero__copy h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.lead {
    margin: 0;
    color: var(--muted);
}

.cta-row {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.badges {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.badge {
    font-size: 13px;
    color: #111827;
    background: #fff;
    border: var(--border);
    border-radius: 999px;
    padding: 8px 10px;
}

/* ====== Cards ====== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card {
    background: var(--panel);
    border: var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.card p {
    margin: 0 0 10px;
    color: var(--muted);
}

/* ====== Split section ====== */
.section--split {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 14px;
    align-items: stretch; /* WICHTIG */
}

.section--split > .panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.steps {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.steps strong {
    color: #111827;
}

.panel {
    background: var(--panel);
    border: var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
}

.panel h3 {
    margin: 0 0 8px;
}

.panel p {
    margin: 0 0 12px;
    color: var(--muted);
}

.panel__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: var(--border);
    font-weight: 600;
    cursor: pointer;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: rgba(239, 68, 68, .5);
}

.btn--primary:hover {
    background: var(--primary-700);
}

.btn--ghost {
    background: #fff;
}

.btn--ghost:hover {
    border-color: rgba(17, 24, 39, .18);
}

/* ====== Footer ====== */
.footer {
    margin-top: 28px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer__links {
    display: flex;
    gap: 14px;
}

.footer__links a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ====== Topbar (mobile) ====== */
.topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(246, 247, 251, .9);
    backdrop-filter: blur(10px);
    border-bottom: var(--border);
    height: 58px;
    padding: 0 12px;
    align-items: center;
    gap: 10px;
}

.topbar__spacer {
    flex: 1;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: var(--border);
    background: #fff;
}

.brand__logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand__text {
    font-weight: 700;
}

/* Burger icon */
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: var(--border);
    background: #fff;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
}

.burger {
    width: 18px;
    height: 12px;
    position: relative;
}

.burger::before,
.burger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #111827;
    border-radius: 999px;
}

.burger::before {
    top: 1px;
}

.burger::after {
    bottom: 1px;
}

.burger {
    background: #111827;
    height: 2px;
    border-radius: 999px;
}

/* ====== Drawer ====== */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 60;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 340px);
    height: 100vh;
    background: #fff;
    z-index: 70;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
    border-right: var(--border);
    display: flex;
    flex-direction: column;
}

.drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: var(--border);
}

.drawer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.drawer__brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.drawer__nav {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer__footer {
    margin-top: auto;
    padding: 12px;
    border-top: var(--border);
}

/* ====== Page Hero (Subpages) ====== */
.page-hero {
    background: var(--panel);
    border: var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
}

.page-hero__copy {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kicker {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.page-hero__media {
    height: 100%;
    min-height: 260px;
    background: #0b1220;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}

.muted {
    color: var(--muted);
    margin: 0 0 12px;
}

/* ====== Before / After ====== */
.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ba {
    background: var(--panel);
    border: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
    margin: 0;
}

.ba img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.ba figcaption {
    padding: 10px 12px;
    font-weight: 700;
}

.hint {
    margin-top: 10px;
    padding: 10px 12px;
    border: var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    font-size: 14px;
}

/* cards helper */
.cards.cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ====== Steps (modern cards) ====== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.step-card {
    background: var(--panel);
    border: var(--border);
    border-radius: var(--radius);
    padding: 14px 14px 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
}

.step-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: var(--border);
    background: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
}

.step-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.step-desc {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Optional: subtle highlight on hover */
.step-card:hover {
    border-color: rgba(17, 24, 39, .18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.page-hero--with-art {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: center;
}

.hero-art {
    position: relative;
    min-height: 220px;
    border-radius: 22px;
    background: var(--panel);
    border: var(--border);
    overflow: hidden;
}

.hero-art__blob {
    position: absolute;
    inset: -40px -60px auto auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12); /* nutzt euren Rot-Ton subtil */
    filter: blur(0px);
}

.hero-art__icon {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: #fff;
    border: var(--border);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
}

.hero-art__icon svg {
    width: 44px;
    height: 44px;
    fill: #111827; /* neutral */
    opacity: .9;
}

.hero-art__icon--phone {
    left: 24px;
    bottom: 26px;
    transform: rotate(-6deg);
}

.hero-art__icon--mail {
    right: 24px;
    top: 26px;
    transform: rotate(6deg);
}

/* ===== Guestbook "Vuetify-like" Form ===== */

.gb-card{
    padding: 26px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #fbfbfd);
}

.gb-form{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Inputs as "outlined pill" with icon */
.gb-field{
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    background: #f6f7fb;
    transition: border-color .2s, box-shadow .2s, background .2s;
    overflow: hidden;
}

.gb-field--textarea{
    align-items: start;
}

.gb-icon{
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #6b7280;
    opacity: .9;
    font-size: 16px;
}

.gb-field input,
.gb-field textarea{
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 14px 12px 0;
    font-size: 14px;
    color: #111827;
}

.gb-field textarea{
    padding-top: 14px;
    resize: vertical;
    min-height: 140px;
}

.gb-field:focus-within{
    background: #ffffff;
    border-color: rgba(255, 75, 75, .55);
    box-shadow: 0 0 0 4px rgba(255, 75, 75, .12);
}

.gb-field input::placeholder,
.gb-field textarea::placeholder{
    color: #9aa3b2;
}

/* Rating */
.gb-rating-wrap{
    padding: 4px 2px 8px;
}

.gb-label{
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #111827;
    margin-bottom: 8px;
}

.gb-rating{
    display: flex;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.gb-rating input{
    display: none;
}

.gb-rating label{
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #d6d9e2;
    transition: transform .12s ease, color .2s ease, filter .2s ease;
}

.gb-rating label:hover{
    transform: translateY(-1px) scale(1.06);
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.12));
}

.gb-rating{
    flex-direction: row-reverse;
}
.gb-rating label:hover,
.gb-rating label:hover ~ label{
    color: #ffb703;
}
.gb-rating input:checked ~ label{
    color: #ffb703;
}

/* Submit button */
.gb-submit{
    margin-top: 4px;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
}

.gb-arrow{
    font-size: 16px;
    transform: translateY(1px);
}

/* Spam-Schutz: Honeypot unsichtbar */
.hp-field{
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ====== Responsive ====== */
@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .section--split {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .page-hero {
        grid-template-columns: 1fr;
    }

    .page-hero__media {
        min-height: 200px;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .ba img {
        height: 220px;
    }

    .cards.cards--2 {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .page-hero--with-art {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 160px;
    }

    .hero-art__icon {
        width: 84px;
        height: 84px;
    }

    .hero-art__icon svg {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 860px) {
    .app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        display: flex;
    }

    .content {
        padding: 18px 14px 40px;
    }
}

@media (max-width: 700px){
    .gb-card{ padding: 18px; border-radius: 18px; }
    .gb-rating label{ font-size: 28px; }
}

@media (max-width: 520px) {
    /* optional: auf ganz kleinen Screens Art ausblenden */
    .hero-art { display: none; }
}