/* =========================================================
   slimdo.de – klassisches, ruhiges Verzeichnisdesign
   Orientierung: ursprüngliches Slimdo-Layout

   Gestaltung:
   - dunkles Grün als tragende Farbe
   - helles, gebrochenes Weiß für Inhaltsflächen
   - Schriftfarbe #191919
   - keine Schatten
   - kleine, ordentliche Überschriften
   - klare Linien und zurückhaltende Abstände
   ========================================================= */


/* ---------------------------------------------------------
   1. FARBEN UND GRUNDWERTE
   --------------------------------------------------------- */

:root {
    --green-dark: #2f741f;
    --green-deep: #245b18;
    --green: #4f8d35;
    --green-medium: #73a75a;
    --green-light: #a8cf88;
    --green-pale: #dcebd0;

    --off-white: #f7f8f2;
    --off-white-alt: #eef3e8;
    --white: #ffffff;

    --text: #191919;
    --muted: #667060;
    --line: #91b67b;
    --line-light: #d5e1cd;

    --radius: 3px;
}


/* ---------------------------------------------------------
   2. BASIS
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--off-white-alt);
    color: var(--text);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: var(--green-deep);
}

a:hover {
    color: var(--green);
}

.brand:hover {
    color: #ffed0a;
}

img {
    max-width: 100%;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}


/* ---------------------------------------------------------
   3. KOPFBEREICH
   --------------------------------------------------------- */

.siteHeader {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--green-dark);
    border-top: 5px solid var(--green-light);
    border-bottom: 1px solid var(--green-deep);
}

.headerInner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--white);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
    text-decoration: none;
}

.brand span {
    color: var(--green-light);
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    padding: 8px 12px;
    border: 1px solid transparent;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

nav a:hover {
    background: var(--green-deep);
    border-color: var(--green-medium);
    color: var(--white);
}


/* ---------------------------------------------------------
   4. EINLEITUNGSBEREICH
   --------------------------------------------------------- */

.hero {
    padding: 36px 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--line);
}

.heroCard {
    max-width: 900px;
    padding: 26px 30px;
    background: var(--off-white);
    border-left: 8px solid var(--green-dark);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.sectionHead h2,
.detailCard h1 {
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.hero h1 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 700;
}

.hero p {
    max-width: 780px;
    margin: 0;
    font-size: 18px;
}

.heroStats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.heroStats strong {
    color: var(--green-deep);
}

.heroStats span {
    color: var(--line);
}


/* ---------------------------------------------------------
   5. VERZEICHNIS
   --------------------------------------------------------- */

.directory {
    padding: 38px 0 64px;
}

.sectionHead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 17px;
}

.sectionHead h2 {
    margin: 0;
    padding-bottom: 7px;
    border-bottom: 3px solid var(--green-medium);
    color: var(--text);
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 700;
}


/* ---------------------------------------------------------
   6. SUCHE UND FILTER
   --------------------------------------------------------- */

.toolbar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--green-dark);
    border: 1px solid var(--green-deep);
}

.toolbar label,
.adminCard label {
    display: grid;
    gap: 5px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    background: var(--off-white);
    border: 1px solid #799e65;
    border-radius: var(--radius);
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--green-light);
    outline-offset: 1px;
    border-color: var(--green-deep);
}


/* ---------------------------------------------------------
   7. TABELLE
   --------------------------------------------------------- */

.tableWrap {
    overflow: hidden;
    background: var(--off-white);
    border: 1px solid var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 15px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-light);
}

th {
    background: var(--green-dark);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

th:hover {
    background: var(--green-deep);
}

th:last-child {
    cursor: default;
}

tbody tr:nth-child(even) {
    background: var(--off-white-alt);
}

tbody tr:hover {
    background: var(--green-pale);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.siteTitle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green-deep);
    font-weight: 700;
    text-decoration: none;
}

.siteTitle:hover {
    text-decoration: underline;
}

.siteTitle img {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: contain;
}

.detailHeading img {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    margin: 0;
    padding: 6px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: contain;
}

.categoryPill {
    display: inline-block;
    padding: 3px 8px;
    background: var(--green-pale);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--green-deep);
    font-size: 12px;
    font-weight: 600;
}

.visitLink,
.primaryButton {
    display: inline-block;
    padding: 8px 13px;
    background: var(--green);
    border: 1px solid var(--green-deep);
    border-radius: var(--radius);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.visitLink:hover,
.primaryButton:hover {
    background: var(--green-deep);
    color: var(--white);
}

.emptyState {
    padding: 34px;
    text-align: center;
    color: var(--muted);
}


/* ---------------------------------------------------------
   8. DETAILSEITE UND IMPRESSUM
   --------------------------------------------------------- */

.detailMain,
.legalMain {
    padding: 34px 0 64px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    font-weight: 600;
    color: var(--muted);
}

.detailCard {
    max-width: 940px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 42px);
    background: var(--off-white);
    border: 1px solid var(--line);
    border-top: 7px solid var(--green-dark);
}

.detailHeading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.detailHeading > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.detailHeading .categoryPill {
    margin: 0 0 8px;
    line-height: 1.2;
}

.detailHeading h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    font-weight: 700;
}

.lead {
    margin-top: 22px;
    color: #34402f;
    font-size: 19px;
    font-weight: 600;
}

.bodyText {
    margin: 23px 0;
    font-size: 17px;
}

.externalNote {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}


/* ---------------------------------------------------------
   9. ADMINBEREICH
   --------------------------------------------------------- */

.adminMain {
    padding: 34px 0 64px;
}

.adminMain button {
    background-color: var(--green);
}

.adminCard {
    margin-bottom: 22px;
    padding: 22px;
    background: var(--off-white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--green-dark);
}

.adminCard h1,
.adminCard h2,
.adminCard h3 {
    margin-top: 0;
    color: var(--text);
    font-weight: 700;
}

.adminCard h1 {
    font-size: 30px;
}

.adminCard h2 {
    font-size: 24px;
}

.adminCard h3 {
    font-size: 19px;
}

.adminCard label {
    color: var(--green-deep);
}

.adminActions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.adminNotice,
.notice,
.success,
.error {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    background: var(--green-pale);
}

.error {
    border-color: #a75b5b;
    background: #f5e4e4;
}


/* ---------------------------------------------------------
   10. FOOTER
   --------------------------------------------------------- */

footer {
    background: var(--green-dark);
    border-top: 5px solid var(--green-light);
    color: var(--white);
}

.footerInner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footerInner a {
    color: var(--white);
    font-weight: 600;
}

.footerInner a:hover {
    color: var(--green-light);
}


/* ---------------------------------------------------------
   11. MOBILE DARSTELLUNG
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .wrap {
        width: min(100% - 22px, 1180px);
    }

    .headerInner {
        min-height: 60px;
    }

    .brand {
        font-size: 24px;
    }

    nav {
        gap: 1px;
        font-size: 14px;
    }

    nav a {
        padding: 7px 8px;
    }

    .hero {
        padding: 25px 0;
    }

    .heroCard {
        padding: 20px;
        border-left-width: 6px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 17px;
    }

    .sectionHead {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .tableWrap {
        overflow: visible;
        background: transparent;
        border: 0;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
    }

    thead {
        display: none;
    }

    tbody {
        display: grid;
        gap: 11px;
    }

    tbody tr {
        padding: 8px 13px;
        background: var(--off-white);
        border: 1px solid var(--line);
        border-top: 4px solid var(--green-dark);
    }

    tbody tr:nth-child(even) {
        background: var(--off-white);
    }

    td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 9px;
        padding: 9px 0;
        border-bottom: 1px solid var(--line-light);
    }

    td:last-child {
        border-bottom: 0;
    }

    td::before {
        content: attr(data-label);
        color: var(--green-deep);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .detailHeading {
        gap: 13px;
        align-items: flex-start;
    }

    .detailHeading img {
        width: 80px;
        height: 80px;
        padding: 5px;
    }

    .detailHeading .categoryPill {
        margin-bottom: 6px;
    }

    .detailHeading h1 {
        font-size: clamp(22px, 7vw, 29px);
    }

    .footerInner {
        min-height: auto;
        padding: 20px 0;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }
}


/* ---------------------------------------------------------
   12. SEHR KLEINE BILDSCHIRME
   --------------------------------------------------------- */

@media (max-width: 470px) {

    .headerInner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 11px 0;
    }

    nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero h1 {
        font-size: 28px;
    }

    .heroStats {
        flex-direction: column;
        gap: 2px;
    }

    .heroStats span {
        display: none;
    }

    td {
        grid-template-columns: 76px minmax(0, 1fr);
    }
}