/* =========================================================
   Base layout (deine bisherige style.css)
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #f5f8fa;
    --text: #222;
    --muted: #555;
    --muted-2: #666;

    --card: #fff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

    --brand: #387a5d;
    --brand-soft: #e2f2e6;

    --border: #b6d1c2;

    --ok-bg: #f3f9f4;
    --ok-border: #5fa87c;

    --warn-bg: #f9f9e6;
    --warn-border: #e4d96f;

    --bad-bg: #fef4f4;
    --bad-border: #e47777;

    --info-bg: #e8ecfa;
    --info-border: #5c90e3;

    --easy-bg: #f7f9ff;
    --easy-border: #a1b7e0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

header {
    background: var(--brand);
    color: #fff;
    padding: 1.5em 0 1em 0;
    text-align: center;
}

header h1 {
    margin: 0 0 0.25em 0;
    line-height: 1.2;
}

header p {
    margin: 0.25em 0 0 0;
    opacity: 0.95;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 1em 0 0 0;
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 700px;
    margin: 2em auto;
    background: var(--card);
    border-radius: 12px;
    padding: 2em;
    box-shadow: var(--shadow);
}

main h2,
main h3 {
    line-height: 1.25;
}

a {
    color: #245a44;
}

a:hover {
    color: #1f4c3a;
}

.hero {
    background: var(--brand-soft);
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 2em;
}

.facts {
    list-style: none;
    padding-left: 0;
    margin-top: 1em;
}

.facts li {
    margin-bottom: 0.5em;
}

footer {
    text-align: center;
    color: var(--muted-2);
    font-size: 0.9em;
    margin: 2em 0 1em 0;
}

/* Small helper classes (ersetzen Inline-Styles) */
.note-small {
    font-size: 0.9em;
    color: var(--muted-2);
    margin-top: 0.4em;
}

.note-medium {
    font-size: 0.97em;
    color: var(--muted);
}

/* Reusable media helpers */
.img-center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    main { padding: 1em; }
    nav ul { flex-direction: column; gap: 1em; }
}

/* =========================================================
   Wandern 2026 Spitzingsee – index.html (Inline-CSS ausgelagert)
   (Basis: .etappen-table + .gallery aus deinem Inline-Block)
   ========================================================= */

.etappen-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    background: var(--ok-bg);
}

.etappen-table th,
.etappen-table td {
    border: 1px solid var(--border);
    padding: 0.6em 0.8em;
    text-align: left;
    vertical-align: top;
}

.etappen-table th {
    background: var(--brand-soft);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    margin-top: 0.8em;
}

.gallery a {
    display: block;
}

.gallery img {
    display: block;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.12);
    transition: filter 0.18s ease, transform 0.18s ease;
}

.gallery img:hover {
    filter: brightness(0.93);
    transform: translateY(-1px);
}

/* =========================================================
   Etappen – etappen.html (Inline-CSS ausgelagert)
   ========================================================= */

.tagbox {
    background: var(--brand-soft);
    border-radius: 10px;
    margin-bottom: 2em;
    padding: 1em 1.5em;
}

.tagbox h3 {
    margin-top: 0;
}

.table-overview {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.table-overview th,
.table-overview td {
    border: 1px solid var(--border);
    padding: 0.5em 0.8em;
}

.rast,
.alternative,
.schwierig,
.schlechtwetter,
.easy {
    margin: 1em 0;
    padding: 1em;
    border-radius: 8px;
}

.rast {
    background: var(--ok-bg);
    border-left: 4px solid var(--ok-border);
}

.schwierig {
    background: var(--bad-bg);
    border-left: 4px solid var(--bad-border);
}

.alternative {
    background: var(--warn-bg);
    border-left: 4px solid var(--warn-border);
}

.schlechtwetter {
    background: var(--info-bg);
    border-left: 4px solid var(--info-border);
}

.easy {
    background: var(--easy-bg);
    border-left: 4px solid var(--easy-border);
}

.alt-table {
    margin-top: 0.8em;
    margin-bottom: 0.8em;
}

@media (max-width: 700px) {
    .tagbox { padding: 1em 0.3em; }
    .tagbox img { width: 100%; margin: 1em 0 0 0; }
}

/* =========================================================
   Hütten – huetten.html (Inline-CSS ausgelagert + Lightbox)
   ========================================================= */

.huette-box {
    background: var(--brand-soft);
    border-radius: 10px;
    margin-bottom: 2em;
    padding: 1em 1.5em;
}

.huette-box h3 {
    margin-top: 0;
}

.huetten-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.huetten-table th,
.huetten-table td {
    border: 1px solid var(--border);
    padding: 0.5em 0.8em;
}

.huetten-table th {
    background: var(--ok-bg);
}

.special {
    background: var(--warn-bg);
    border-left: 4px solid var(--warn-border);
    padding: 0.8em;
    margin: 1em 0;
    border-radius: 7px;
}

.food {
    background: var(--ok-bg);
    border-left: 4px solid var(--ok-border);
    padding: 0.8em;
    margin: 1em 0;
    border-radius: 7px;
}

.huette-img {
    width: 100%;
    max-width: 340px;
    border-radius: 8px;
    margin-bottom: 1em;
    cursor: pointer;
    box-shadow: 0 1px 8px rgba(0,0,0,0.12);
    transition: filter 0.18s;
    display: block;
}

.huette-img:hover {
    filter: brightness(0.92);
}

/* Lightbox (CSS-only via :target) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    padding: 2vh 2vw;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 10px;
    box-shadow: 0 3px 24px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 2vw;
    right: 3vw;
    color: #fff;
    font-size: 2.2em;
    text-decoration: none;
    font-weight: bold;
    background: rgba(40,40,40,0.5);
    padding: 0 0.2em;
    border-radius: 4px;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: #222;
}

@media (max-width: 700px) {
    .huette-box { padding: 1em 0.3em; }
    .huette-img { width: 100%; max-width: 100%; }
}

/* =========================================================
   Anfahrt – anfahrt.html (Inline-CSS ausgelagert)
   ========================================================= */

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.info-table th,
.info-table td {
    border: 1px solid var(--border);
    padding: 0.5em 0.8em;
}

.info-table th {
    background: var(--brand-soft);
}

.hinweis {
    background: var(--warn-bg);
    border-left: 4px solid var(--warn-border);
    padding: 1em;
    margin: 1em 0;
    border-radius: 7px;
}

.parkbox {
    background: var(--brand-soft);
    border-radius: 8px;
    padding: 1em;
    margin-bottom: 1em;
}

@media (max-width: 700px) {
    .info-table { font-size: 0.97em; }
    .parkbox { padding: 1em 0.3em; }
}
