/* Wanderticket – mobiles, luftiges Layout (V3) */

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1f3124;
    background: #f4f6f3;
}

/* Links */
a {
    color: #0f6a3a;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Kopfbereich & Navigation ------------------------------------------------- */

header {
    background: #ffffff;
    border-bottom: 1px solid #dde4dd;
    padding: 0.6rem 1rem 0.75rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.site-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.site-subtitle {
    font-size: 0.85rem;
    color: #3d5c46;
}

/* Hauptnavigation – mobil freundlicher */
nav,
.site-nav {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

nav a,
.site-nav a {
    font-size: 0.9rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #edf3ed;
    border: 1px solid transparent;
    white-space: nowrap;
}

nav a:hover,
nav a:focus,
.site-nav a:hover,
.site-nav a:focus {
    background: #d4e6d7;
    border-color: #b4d0bb;
    text-decoration: none;
}

/* Layout-Bereiche ---------------------------------------------------------- */

main {
    padding: 1rem 0.75rem 2rem;
}

.main-inner {
    max-width: 960px;
    margin: 0 auto;
}

.section {
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 1.1rem 0.95rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.section-narrow {
    max-width: 640px;
    margin: 0 auto 1rem;
}

.section-center {
    text-align: center;
}

/* Typografie --------------------------------------------------------------- */

h1, h2, h3 {
    margin: 0 0 0.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: #132418;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.25rem;
}

h3 {
    font-size: 1.05rem;
}

p {
    margin: 0 0 0.7rem;
}

/* Geordnete Listen (z.B. "So funktioniert dein Wanderticket") ------------- */
/* Wir unterdrücken die Browser-Nummerierung, weil die Zahlen bereits im Text stehen. */

ol {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0.7rem;
}

ol li {
    margin-bottom: 0.4rem;
}

/* Tabellen (z. B. Tour- und Ticketübersichten) ----------------------------- */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th,
td {
    padding: 0.5rem 0.3rem;
    vertical-align: top;
}

th {
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #dde4dd;
}

tbody tr:nth-child(even) {
    background: #f7faf7;
}

/* Formulare --------------------------------------------------------------- */

form {
    margin: 0.5rem 0 0;
}

.form-row {
    margin-bottom: 0.8rem;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

label span.hint {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #607667;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="password"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid #c7d5c7;
    font: inherit;
    background: #ffffff;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #0f6a3a;
    box-shadow: 0 0 0 1px rgba(15, 106, 58, 0.2);
}

textarea {
    min-height: 5rem;
    resize: vertical;
}

.form-inline {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.form-inline .form-row {
    flex: 1 1 120px;
}

/* Checkboxen */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.15rem;
}

/* Buttons --------------------------------------------------------------- */

button,
input[type="submit"],
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: none;
    font: inherit;
    font-weight: 600;
    text-align: center;
    background: #0f6a3a;
    color: #ffffff;
    cursor: pointer;
}

button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
.btn:hover,
.btn:focus {
    background: #0b5330;
}

.btn-secondary {
    background: #e3ece3;
    color: #24402b;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #ceddce;
}

/* QR-Code-Seite ----------------------------------------------------------- */

.qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Footer ------------------------------------------------------------------ */

footer {
    border-top: 1px solid #dde4dd;
    padding: 0.75rem 0.75rem 1.25rem;
    font-size: 0.8rem;
    color: #607667;
    background: #ffffff;
}

footer .footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

/* Ab mittlerer Bildschirmbreite: etwas großzügiger ----------------------- */

@media (min-width: 768px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 0.8rem 1.5rem 0.9rem;
    }

    main {
        padding: 1.5rem 1.5rem 3rem;
    }

    .section {
        padding: 1.4rem 1.4rem;
        margin-bottom: 1.2rem;
    }

    button,
    input[type="submit"],
    .btn {
        width: auto;
    }
}

/* =========================================
   Desktop-Optimierung Startseite
   ========================================= */
@media (min-width: 1100px) {

    /* Größerer Content-Rahmen auf großen Bildschirmen */
    .main-inner {
        max-width: 1200px;
        margin: 2rem auto 3rem;
    }

    main {
        padding-top: 2.5rem;
    }

    .section {
        margin-bottom: 1.6rem;
    }
}
