/*
 * style.css – Mausi's Nähkästchen
 * Version 1.0 – 2026-03-04
 * © Frone.de
 */

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

:root {
    --rosa:    #c0477a;
    --rosa-d:  #9e3562;
    --rosa-l:  #f9eef4;
    --lila:    #7b5ea7;
    --text:    #333333;
    --bg:      #fdf8fb;
    --white:   #ffffff;
    --border:  #e8d0de;
    --grau:    #f5f0f3;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a            { color: var(--rosa-d); text-decoration: none; }
a:hover      { text-decoration: underline; color: var(--lila); }
img          { display: block; max-width: 100%; height: auto; }
ul           { padding-left: 1.4rem; }
li           { margin-bottom: .3rem; }

/* ── WRAPPER ─────────────────────────────────────────────── */
.wrapper {
    max-width: 940px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,.10);
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--rosa);
    line-height: 0;
}

.site-header a { display: block; }
.site-header img { width: 100%; height: auto; display: block; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.layout {
    display: flex;
    min-height: 460px;
}

/* ── SIDEBAR / NAV ───────────────────────────────────────── */
.sidebar {
    width: 155px;
    flex-shrink: 0;
    background: var(--grau);
    border-right: 1px solid var(--border);
    padding: 1.2rem .4rem;
}

.sidebar ul { list-style: none; padding: 0; }
.sidebar li { margin-bottom: .5rem; }

.sidebar li a,
.sidebar li span {
    display: block;
    padding: .4rem .5rem;
    border-radius: 5px;
    font-size: .78rem;
    font-weight: bold;
    color: var(--rosa-d);
    text-align: center;
    transition: background .15s, color .15s;
    word-break: break-word;
    hyphens: auto;
}

.sidebar li.active span {
    background: var(--rosa);
    color: var(--white);
    cursor: default;
}

.sidebar li a:hover {
    background: var(--rosa);
    color: var(--white);
    text-decoration: none;
}

/* ── RIGHT CONTACT SIDEBAR ───────────────────────────────── */
.contact-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--grau);
    border-left: 1px solid var(--border);
    padding: 1rem .6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-sidebar img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ── CONTENT ─────────────────────────────────────────────── */
.content {
    flex: 1;
    padding: 1.8rem 2rem;
    background: var(--white);
}

.content h1 {
    color: var(--rosa);
    font-size: 1.2rem;
    margin-bottom: .85rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--border);
}

.content h2 {
    color: var(--lila);
    font-size: 1rem;
    margin: 1.1rem 0 .5rem;
}

.content p  { margin-bottom: .75rem; }

/* ── PANEL (Bild + Text) ─────────────────────────────────── */
.panel {
    display: flex;
    gap: 1.5rem;
}

.panel-img {
    width: 160px;
    flex-shrink: 0;
    text-align: center;
}

.panel-img img { margin: 0 auto .6rem; border-radius: 6px; }
.panel-body    { flex: 1; }

/* ── INDEX: Hero ─────────────────────────────────────────── */
.index-intro {
    background: var(--rosa-l);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.4rem;
    border-left: 4px solid var(--rosa);
}

.index-intro p { margin-bottom: .5rem; }
.index-intro p:last-child { margin-bottom: 0; }

/* ── ÖFFNUNGSZEITEN-BOX ──────────────────────────────────── */
.oeffnungszeiten {
    background: var(--grau);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.3rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    min-width: 280px;
}

.oeffnungszeiten h2 {
    margin-top: 0;
    color: var(--rosa);
    border-bottom: 1px solid var(--border);
    padding-bottom: .3rem;
    margin-bottom: .6rem;
}

.oeffnungszeiten table {
    border-collapse: collapse;
    width: 100%;
    font-size: .9rem;
}

.oeffnungszeiten td {
    padding: .2rem .5rem .2rem 0;
    vertical-align: top;
}

.oeffnungszeiten td:first-child {
    font-weight: bold;
    white-space: nowrap;
    color: var(--rosa-d);
    padding-right: 1rem;
}

.oeffnungszeiten .hinweis {
    font-size: .82rem;
    color: var(--lila);
    font-style: italic;
    margin-top: .5rem;
}

/* ── KONTAKT-BEREICH ─────────────────────────────────────── */
.kontakt-card {
    background: var(--rosa-l);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    display: inline-block;
    max-width: 420px;
    width: 100%;
}

.kontakt-card .firma {
    font-weight: bold;
    font-size: 1rem;
    color: var(--rosa-d);
    margin-bottom: .6rem;
}

.kontakt-bild {
    border: 1px solid var(--border);
    border-radius: 5px;
    margin-top: .6rem;
}

/* ── NÄHKURS – Kurs-Liste ────────────────────────────────── */
.kurs-box {
    background: var(--rosa-l);
    border-radius: 8px;
    padding: 1rem 1.3rem;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--rosa);
}

.kurs-box h2 { margin-top: 0; }

/* ── ANFAHRT – Karte ─────────────────────────────────────── */
.map-wrapper {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: none;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 1.4rem;
    background: var(--grau);
    border-top: 3px solid var(--rosa);
    font-size: .75rem;
    flex-wrap: wrap;
    gap: .3rem;
}

.site-footer a { color: var(--rosa-d); font-weight: bold; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 760px) {
    .site-header      { flex-direction: column; text-align: center; }
    .layout           { flex-direction: column; }
    .sidebar          { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: .6rem; }
    .sidebar ul       { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
    .contact-sidebar  { width: 100%; border-left: none; border-top: 1px solid var(--border); }
    .panel            { flex-direction: column; }
    .panel-img        { width: 100%; }
    .site-footer      { flex-direction: column; text-align: center; }
}
