/* Shiatsu-Praxis Monika Stief – Farben und Aufbau angelehnt an die bisherige Website (Artisteer-Skin). */

@font-face {
    font-family: "Didact Gothic";
    src: url("fonts/DidactGothic-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --c-page: #fff5b9;          /* Hintergrund ausserhalb */
    --c-sheet: #ffe96b;         /* Inhaltsfläche */
    --c-text: #0c1301;
    --c-heading: #2e2e2e;
    --c-red: #e32c2d;           /* Titel, Links */
    --c-red-dark: #ac1616;
    --c-green: #4a7708;         /* Menü-Links (etwas dunkler als früher #578a0a, besser lesbar) */
    --c-bar-top: #ffd88f;       /* Menüleiste / Fusszeile Verlauf */
    --c-bar-bottom: #ffb224;
    --g-bar: linear-gradient(var(--c-bar-top), var(--c-bar-bottom));
    --g-active: linear-gradient(#ec6f6f 0, #e11e1f 60%, #ac1616 100%);
    --font: "Century Gothic", "Didact Gothic", "URW Gothic", "Avenir Next", Arial, Helvetica, sans-serif;
    --radius: 6px;
    --max: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--c-page);
    color: var(--c-text);
    font: 400 1.0625rem/1.6 var(--font);
}

img { max-width: 100%; height: auto; }

a { color: var(--c-red); font-weight: 700; text-underline-offset: .15em; }
a:hover { color: var(--c-red-dark); }
:focus-visible { outline: 3px solid var(--c-red); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 10; padding: .5rem 1rem; background: #fff; }
.skip-link:focus { left: .5rem; }

/* ---------- Rahmen ---------- */

.sheet {
    max-width: var(--max);
    margin: 0 auto;
    background: var(--c-sheet);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Kopf ---------- */

.site-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 2rem 1.25rem;
    min-height: 150px;
}
.site-header__title {
    flex: 1;
    color: var(--c-red);
    font-size: clamp(1.45rem, 1rem + 2.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    text-align: center;
}
.site-header__title:hover { color: var(--c-red); }
.site-header__flower { width: 105px; flex: none; }

/* ---------- Menü ---------- */

.main-nav { background: var(--g-bar); box-shadow: 0 2px 3px rgb(0 0 0 / .12); }
.main-nav ul { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.main-nav a {
    display: block;
    padding: .85rem 1.1rem;
    color: var(--c-green);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
}
.main-nav a:hover { color: var(--c-red); background: rgb(255 255 255 / .25); }
.main-nav a.active { background: var(--g-active); color: #fff; }

.menu-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    padding: .55rem .8rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--g-bar);
    color: var(--c-text);
    font: 700 .9rem var(--font);
    cursor: pointer;
}
.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Inhalt + Seitenleiste ---------- */

.layout {
    flex: 1;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas: "sidebar content";
    gap: 2rem;
    padding: 2rem 2rem 2.5rem;
}
.content { grid-area: content; max-width: 44rem; outline: none; }
.sidebar { grid-area: sidebar; }

h1, h2, h3 { color: var(--c-heading); line-height: 1.25; }
h1 { margin: 0 0 1rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.7rem); }
.prose h2 { margin: 1.75rem 0 .5rem; font-size: 1.25rem; }
.prose h3 { margin: 1.25rem 0 .4rem; font-size: 1.05rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose img { display: block; border-radius: var(--radius); box-shadow: 0 2px 8px rgb(0 0 0 / .15); }
.muted { color: #555; font-size: .9rem; }

/* Adresse */
.address-card { display: flex; flex-direction: column; font-style: normal; font-size: .95rem; line-height: 1.5; text-align: center; }
.address-card__name { font-size: 1rem; }
.address-card__links { display: flex; flex-direction: column; gap: .25rem; margin-top: .6rem; }
.address-card__link { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 400; color: var(--c-text); overflow-wrap: anywhere; }
.address-card__link svg { flex: none; color: var(--c-red); }

.address-card--large {
    text-align: left;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: rgb(255 255 255 / .45);
    border-radius: var(--radius);
    font-size: 1.05rem;
}
.address-card--large .address-card__link { justify-content: flex-start; font-weight: 700; color: var(--c-red); padding: .2rem 0; }

/* Startseite */
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.home__flower { width: 100%; max-width: 418px; justify-self: center; }
.home__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Knöpfe */
.button {
    display: inline-block;
    padding: .7rem 1.2rem;
    border-radius: var(--radius);
    background: var(--g-active);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 4px rgb(0 0 0 / .15);
}
.button:hover { color: #fff; filter: brightness(1.08); }
.button--secondary { background: var(--g-bar); color: var(--c-text); }
.button--secondary:hover { color: var(--c-text); }

/* Bearbeiten-Knopf (nur angemeldet) */
.edit-link {
    float: right;
    margin: 0 0 .5rem 1rem;
    padding: .35rem .8rem;
    border-radius: var(--radius);
    background: #000;
    color: #fff;
    font-size: .85rem;
    text-decoration: none;
}
.edit-link:hover { color: #fff; background: #333; }

/* ---------- Fusszeile ---------- */

.site-footer { background: var(--g-bar); text-align: center; font-size: .9rem; padding: 1rem 1.5rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--c-text); font-weight: 400; }
.site-footer .sep { margin: 0 .4rem; }

/* ---------- Tablet / Handy ---------- */

@media (max-width: 899px) {
    .layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "content" "sidebar";
        gap: 2rem;
        padding: 1.5rem 1.25rem 2rem;
    }
    .content { max-width: none; }
    .sidebar { padding: 1.25rem; border-top: 2px solid var(--c-bar-bottom); }
    .home { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .home__flower { max-width: 300px; }
    /* Auf der Kontaktseite steht die Adresse schon im Inhalt */
    .layout:has(.address-card--large) .sidebar { display: none; }
}

@media (max-width: 699px) {
    .site-header { min-height: 0; padding: .75rem 1rem; gap: .75rem; }
    .site-header__title { text-align: left; }
    .site-header__name, .site-header__person { display: block; }
    .site-header__flower { width: 56px; order: -1; }

    /* Menü als aufklappbare Liste (nur mit JavaScript, ohne JS bleibt es immer sichtbar) */
    .js .menu-toggle { display: inline-flex; }
    .js .main-nav:not(.open) { display: none; }
    .main-nav ul { flex-direction: column; }
    .main-nav li + li { border-top: 1px solid rgb(255 255 255 / .5); }
    .main-nav a { padding: .9rem 1.25rem; font-size: 1rem; }

    .site-footer .sep { display: block; height: .25rem; visibility: hidden; }
    .home__actions .button { flex: 1 1 100%; text-align: center; }
    .edit-link { float: none; display: inline-block; margin: 0 0 1rem; }
}

@media print {
    .main-nav, .menu-toggle, .site-footer, .edit-link, .skip-link { display: none !important; }
    body, .sheet { background: #fff; }
    .layout { display: block; padding: 0; }
    .sidebar { margin-top: 2rem; }
    a { color: inherit; }
}
