/* =========================================================
   Pfadihaus Ormalingen - Modern-rustikales Design
   ========================================================= */

/* ---------- Schriftarten ---------- */
@font-face {
    font-family: "Mona Sans";
    src: url("../fonts/MonaSansVF-Regular.woff2") format("woff2-variations");
    font-weight: 200 900;
    font-display: swap;
}

/* ---------- CSS-Variablen ---------- */
:root {
    /* Farben */
    --color-forest: #1e3a2e;
    --color-forest-light: #2d5a45;
    --color-earth: #8b6f47;
    --color-earth-light: #a88b5e;
    --color-cream: #faf8f3;
    --color-white: #ffffff;
    --color-text: #2c332f;
    --color-text-light: #5c6b60;
    --color-border: rgba(30, 58, 46, 0.12);
	
	--color-warning: #ba3b35;

    /* Abstände */
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap: 1.5rem;
    --gap-md: 2rem;
    --gap-lg: 3rem;
    --gap-xl: 5rem;

    /* Schrift */
    --font-sans: "Mona Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 1.05rem;
    --line-height: 1.7;

    /* Formen */
    --radius-sm: 0.5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;

    /* Schatten */
    --shadow-sm: 0 1px 2px rgba(30, 58, 46, 0.05);
    --shadow: 0 4px 20px rgba(30, 58, 46, 0.08);
    --shadow-lg: 0 10px 40px rgba(30, 58, 46, 0.12);

    /* Layout */
    --container-max: 1200px;
    --header-height: 4rem;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

/* ---------- Links ---------- */
a {
    color: var(--color-forest-light);
    text-decoration: underline;
	text-decoration-thickness: 2px;
    text-decoration-color: rgba(45, 90, 69, 0.3);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;

    &:hover {
        color: var(--color-earth);
        text-decoration: underline;
		text-decoration-thickness: 2px;
        text-decoration-color: var(--color-earth);
    }
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-forest);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--gap);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: var(--gap-sm);
}

p {
    margin-bottom: var(--gap);
}

p:last-child {
    margin-bottom: 0;
}

/* ---------- Tabellen ---------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: var(--gap);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1rem var(--gap-sm);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

th {
    background-color: var(--color-cream);
    color: var(--color-forest);
    font-weight: 700;
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(250, 248, 243, 0.6); /* Sehr leichtes Creme bei Hover */
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gap);
}

.section {
    padding-block: var(--gap-xl);
}

.section-cream {
    background-color: var(--color-cream);
}

.section-white {
    background-color: var(--color-white);
}

.section-forest {
    background-color: var(--color-forest);
    color: var(--color-cream);

    h2, h3 {
        color: var(--color-white);
    }

    a:not(.btn) {
        color: var(--color-earth-light);
        text-decoration-color: rgba(168, 139, 94, 0.45);

        &:hover {
            color: var(--color-white);
            text-decoration-color: var(--color-white);
        }
    }
}

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

.lead {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 65ch;
    margin-inline: auto;
}

/* ---------- Navigation ---------- */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-forest);
    text-decoration: none;

    &:hover {
        color: var(--color-forest);
        text-decoration: none;
    }
}

.nav-items {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    list-style: none;
}

.nav-item {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;

    &:hover,
    &.active {
        color: var(--color-forest);
        border-bottom-color: var(--color-earth);
        text-decoration: none;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-forest);
}

.nav-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    position: relative;
    transition: background-color 0.2s ease;

    &::before,
    &::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: currentColor;
        transition: transform 0.2s ease;
    }

    &::before {
        top: -7px;
    }

    &::after {
        top: 7px;
    }
}

@media (max-width: 800px) {
    .nav-toggle {
        display: block;
    }

    .nav-items {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: var(--color-cream);
        border-bottom: 1px solid var(--color-border);
        padding: var(--gap-sm) var(--gap);
        display: none;
        box-shadow: var(--shadow-lg);
    }

    .nav-items.is-open {
        display: flex;
    }

    .nav-item {
        padding: var(--gap-sm) 0;
        border-bottom: 1px solid var(--color-border);

        &:last-child {
            border-bottom: none;
        }

        &:hover,
        &.active {
            border-bottom-color: var(--color-border);
        }
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: var(--gap-xl) var(--gap);
    overflow: hidden;

    &::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            rgba(30, 58, 46, 0.35) 0%,
            rgba(30, 58, 46, 0.6) 100%
        );
        z-index: 1;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--gap);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--gap-md);
}

.hero-small {
    min-height: 35vh;
}

/* Verhindert störenede Unterstreichungen im Hero-Bild-Bereich */
.hero a:not(.btn) {
    color: var(--color-white);
    text-decoration-color: rgba(255, 255, 255, 0.5);

    &:hover {
        color: var(--color-white);
        text-decoration-color: var(--color-white);
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    margin-block: 0.25rem;
    border-radius: var(--radius);

    & + .btn {
        margin-left: var(--gap-sm);
    }
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;

    &:hover {
        transform: translateY(-2px);
        text-decoration: none;
    }
}

.btn-primary {
    background-color: var(--color-earth);
    color: var(--color-white);

    &:hover {
        background-color: var(--color-earth-light);
        color: var(--color-white);
        box-shadow: var(--shadow);
    }
}

.btn-forest {
    background-color: var(--color-forest);
    color: var(--color-white);

    &:hover {
        background-color: var(--color-forest-light);
        color: var(--color-white);
        box-shadow: var(--shadow);
    }
}

.btn-outline {
    background-color: transparent;
    color: var(--color-forest);
    border-color: var(--color-forest);

    &:hover {
        background-color: var(--color-forest);
        color: var(--color-white);
    }
}

.section-forest .btn-outline,
.hero .btn-outline {
    color: var(--color-white);
    border-color: var(--color-white);

    &:hover {
        background-color: var(--color-white);
        color: var(--color-forest);
    }
}

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--gap-md);
}

.card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: var(--gap-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    &:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: var(--gap-xs);
}

.card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-earth);
}

.card-list {
    list-style: none;

    li {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--color-border);
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: var(--gap);

        &:last-child {
            border-bottom: none;
        }
    }

    strong {
        color: var(--color-forest);
        font-weight: 600;
        text-align: right;
    }
}

/* ---------- Info-Sektionen ---------- */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: start;

    @media (max-width: 900px) {
        grid-template-columns: 1fr;
    }
}

.info-text {
    h2 {
        margin-bottom: var(--gap);
    }

    ul {
        padding-left: 1.2rem;
        margin-bottom: var(--gap);

        li {
            margin-bottom: 0.5rem;
        }
    }
}

.info-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ---------- Bildergalerie ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);

    @media (max-width: 900px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 500px) {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    &:hover img {
        transform: scale(1.05);
    }

    &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            transparent 60%,
            rgba(30, 58, 46, 0.3) 100%
        );
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    &:hover::after {
        opacity: 1;
    }
}

/* ---------- Preise ---------- */
.price-section {
    margin-bottom: var(--gap-xl);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-md);
}

.price-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: var(--gap-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);

    h3 {
        color: var(--color-forest);
        margin-bottom: var(--gap);
        padding-bottom: var(--gap-sm);
        border-bottom: 2px solid var(--color-earth);
    }
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    gap: var(--gap);

    &:last-child {
        border-bottom: none;
    }

    .price-note {
        font-size: 0.85rem;
        color: var(--color-text-light);
        display: block;
        font-weight: 400;
    }

    .price-value {
        font-weight: 700;
        color: var(--color-forest);
        white-space: nowrap;
    }
}

.price-min {
    margin-top: var(--gap);
    padding-top: var(--gap);
    border-top: 2px solid var(--color-border);
    font-weight: 600;
    color: var(--color-forest);
}

/* ---------- Reservation ---------- */
.calendar-wrapper {
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: var(--gap-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);

    iframe {
        width: 100%;
        height: 880px;
        border: none;
        border-radius: var(--radius-sm);
    }
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm) var(--gap-md);
    margin-top: var(--gap);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.reserviert.prov { background-color: #f0e68c; }
.reserviert.def { background-color: #ff6b6b; }
.reserviert.half-day-forenoon { background: linear-gradient(90deg, #ff6b6b 50%, transparent 50%); }
.reserviert.half-day-afternoon { background: linear-gradient(90deg, transparent 50%, #ff6b6b 50%); }

/* ---------- Kontakt ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--gap-lg);
    align-items: start;

    @media (max-width: 900px) {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    .contact-card {
        background-color: var(--color-white);
        border-radius: var(--radius);
        padding: var(--gap-md);
        box-shadow: var(--shadow);
        border: 1px solid var(--color-border);
    }
}

.contact-form {
    background-color: var(--color-white);
    border-radius: var(--radius);
    padding: var(--gap-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: var(--gap);

    label {
        display: block;
        margin-bottom: 0.4rem;
        font-weight: 600;
        color: var(--color-forest);
        font-size: 0.95rem;
    }

    input,
    textarea {
        width: 100%;
        padding: 0.85rem 1rem;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        background-color: var(--color-cream);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;

        &:focus {
            outline: none;
            border-color: var(--color-forest-light);
            box-shadow: 0 0 0 3px rgba(45, 90, 69, 0.1);
            background-color: var(--color-white);
        }
    }

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

.success,
.error {
    padding: var(--gap);
    border-radius: var(--radius-sm);
    margin-bottom: var(--gap);
}

.success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;

    ul {
        margin: 0;
        padding-left: 1.2em;
    }
}

/* Honeypot-Feld: für Menschen unsichtbar */
.website-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--color-forest);
    color: rgba(255, 255, 255, 0.8);
    padding-block: var(--gap-lg);

    a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;

        &:hover {
            color: var(--color-white);
            text-decoration: underline;
        }
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-sm);
    text-align: center;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-white);
}

.footer-links {
    display: flex;
    gap: var(--gap);
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Utility ---------- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--gap-sm); }
.mb-2 { margin-bottom: var(--gap); }
.mb-3 { margin-bottom: var(--gap-md); }
.mb-4 { margin-bottom: var(--gap-lg); }

.narrow {
    max-width: 900px;
    margin-inline: auto;
}

.narrow-sm {
    max-width: 800px;
    margin-inline: auto;
}

.lead-light {
    color: rgba(255, 255, 255, 0.9);
}

.mt-md {
    margin-top: var(--gap-md);
}

.text-light {
    color: var(--color-text-light);
}

.text-small {
    font-size: 0.95rem;
}

.blockquote {
    margin: var(--gap) 0;
    padding-left: var(--gap);
    border-left: 3px solid var(--color-earth);
    color: var(--color-text-light);
}

/* ---------- Print ---------- */
@media print {
    .nav-wrapper,
    .hero::before,
    footer,
    .btn {
        display: none !important;
    }
}

/* ---------- Warning Wrapper ---------- */
.warning-wrapper {
	background-color: var(--color-warning);
	color: var(--color-cream);
	text-align: center;
	padding-block: var(--gap-sm);
	
	a {
		color: inherit;	
		text-decoration-color: var(--color-cream);
	}
}