*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/static/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/static/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/static/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}





body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
    background-color: #f7f7f7;
    color: #222;
}

:root {
    --gold: #c9a23f;
    --text-dark: #222;
    --text-light: #f7f7f7;
    --light-bg: #f9f9f9;
    --white-bg: #ffffff;
    --dark-bg: #111;
    --currency: "CHF";
}

.header {
    position: relative;
    min-height: 80vh;
    cursor: default;
    background: #0f0f0f;
    cursor: default;
}

html,
body {

    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* main nimmt Resthöhe ein */
.page-agb {
    flex: 1;
}


.header-nav {
    --nav-h: 72px;
    position: relative;
    width: 100%;
    height: var(--nav-h);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 clamp(16px, 6vw, 56px);
    background: rgba(15, 15, 15, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    z-index: 20;
}


.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0.95;
    padding: 10px 0;
}

.brand:hover {
    opacity: 1;
}

/* Desktop-Menü */
.header-nav ul {
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;

    display: flex;
    align-items: center;
    gap: 18px;
}

.header-nav .nav-link {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;

    padding: 10px 10px;
    border-radius: 10px;
    white-space: nowrap;

    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.header-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.header-nav .nav-link.active {
    color: var(--gold);
}

/* Hamburger (Desktop aus) */
.hamburger {
    display: none;
    margin-left: 12px;

    flex-direction: column;
    justify-content: space-between;

    width: 26px;
    height: 20px;

    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger -> X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Fokus sichtbar */
.header-nav a:focus-visible,
.hamburger:focus-visible {
    outline: 3px solid rgba(201, 162, 63, 0.55);
    outline-offset: 2px;
}


@media (max-width: 900px) {
    .hamburger {
        display: flex;
        margin-left: auto;
        /* rechts */
    }

    .header-nav ul {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;

        margin: 0;
        display: none;
        /* per .active */
        flex-direction: column;
        align-items: stretch;

        gap: 6px;

        padding: 12px 16px 14px;
        background: rgba(0, 0, 0, 0.92);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

        border-radius: 0 0 16px 16px;
        z-index: 999;
    }

    .header-nav ul.active {
        display: flex;
    }

    .header-nav .nav-link {
        width: 100%;
        padding: 12px 12px;
        border-radius: 12px;
    }
}


/* Hauptbereich */
.page-agb .agb {
    background-color: #fff;
    padding: 100px 20px;
}

/* Container */
.page-agb .agb-container {
    max-width: 950px;
    margin: 0 auto;
    background: #fafafa;
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.2);
    line-height: 1.7;
    /* nur für den Dokumentbereich */
}

/* Titel im Kästchen */
.page-agb .title-box {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid darkgoldenrod;
    border-radius: 14px;
    padding: 20px 30px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 50px;
}

.page-agb .title-box h1 {
    color: #111;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* Inhalt */
.page-agb .agb-container h2 {
    color: darkgoldenrod;
    font-size: 22px;
    margin-top: 40px;
}

.page-agb .agb-container p {
    margin: 0 0 20px;
    font-size: 16px;
    color: #333;
}

/* Listen (du hast Punkt 17 als UL) */
.page-agb .agb-container ul {
    margin: 10px 0 20px;
    padding-left: 1.2rem;
    color: #333;
}

.page-agb .agb-container li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Zurück-Link */
.page-agb .zurueck-link {
    text-align: center;
    margin-top: 60px;
}

.page-agb .zurueck-link a {
    color: darkgoldenrod;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.page-agb .zurueck-link a:hover {
    color: #a57c1b;
    transform: scale(1.05);
}

.page-agb .title-box,
.page-agb .title-box h1 {
    max-width: 100%;
    box-sizing: border-box;
}


.footer {
    background: #16161D;
    color: rgba(255, 255, 255, .86);
    border-top: 1px solid rgba(255, 255, 255, .08);
    width: 100%;
    cursor: default;
}

.footer-inner.slim {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 44px 20px 18px;

    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
    align-items: start;
}

.footer-title {
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .95rem;
    margin-bottom: 10px;
}

.footer-desc {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .68);
    max-width: 58ch;
    line-height: 1.6;
    font-size: .95rem;
}

.footer-mail {
    display: inline-block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
    font-weight: 600;
}

.footer-mail:hover {
    color: #fff;
    text-decoration: underline;
}

/* Rechts: Links */
.footer-legal {
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    transition: .2s ease;
    white-space: nowrap;
}

.footer-legal a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

/* Bottom line */
.footer-bottom {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .55);
    font-size: .9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-inner.slim {
        grid-template-columns: 1fr;
        padding: 38px 16px 16px;
        gap: 18px;
    }

    .footer-legal {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-legal a {
        padding: 6px 0;
    }
}



/* Responsive */
@media (max-width: 700px) {
    .page-agb .agb-container {
        padding: 30px 20px;
    }

    .page-agb .title-box h1 {
        font-size: 26px;
    }
}

@media (max-width: 900px) {
    .page-agb .agb {
        padding-top: 70px;
    }
}