﻿/* --- GLOBALE STRUKTUR & RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HAUPTNAVIGATION --- */
.main-nav {
    background-color: #1e293b;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 18px 16px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover {
    background-color: #334155;
    color: #f8fafc;
}

/* Aktiver Link im Hauptmenü */
.main-nav a.active {
    background-color: #3b82f6;
    color: #ffffff;
}

/* --- LAYOUT-CONTAINER --- */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1; /* Schiebt den Footer nach unten, falls wenig Inhalt existiert */
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Wenn keine Sidebar aktiv ist (Grid auf 1 Spalte anpassen) */
.container:not(:has(.sidebar)) {
    grid-template-columns: 1fr;
}

/* --- DYNAMISCHE SIDEBAR --- */
.sidebar {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: fit-content;
}

.sidebar h3 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    color: #475569;
    text-decoration: none;
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar ul li a:hover {
    background-color: #f8fafc;
    color: #1e293b;
}

/* Aktiver Link im Untermenü */
.sidebar ul li a.active-sub {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

/* --- INHALTSBEREICH --- */
main {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

main h1, main h2 {
    color: #0f172a;
    margin-bottom: 15px;
}

/* --- RESPONSIVE ANPASSUNGEN (MOBILE) --- */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr; /* Sidebar und Main rutschen untereinander */
        gap: 20px;
        margin: 15px auto;
    }
    
    .main-nav {
        justify-content: center;
    }
    
    .main-nav a {
        padding: 14px 12px;
        font-size: 0.95rem;
    }
}

/* --- RESPONSIVE BILDER --- */
main img, .sidebar img {
    max-width: 100%;    /* Zwingt das Bild, niemals breiter als der Textbereich zu werden */
    height: auto;       /* Behält das korrekte Seitenverhältnis bei (keine Verzerrung) */
    display: block;     /* Verhindert einen winzigen, störenden Abstand unter dem Bild */
    border-radius: 8px; /* Optional: Passt die Ecken an deine schicken Boxen (12px) an */
    margin: 20px 0;     /* Optional: Gibt dem Bild oben und unten etwas Luft zum Text */
}


/* --- LIGHTBOX BILDER (große Bilder sind unsichtbar, bis auf eine Vorschau geklickt wird)--- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.85);
}

.lightbox:target {
    display: flex;
}

.lightbox-close {
    position: absolute;
    inset: 0;
    cursor: default;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: #222;
    font-size: 30px;
    line-height: 32px;
    text-align: center;
    text-decoration: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 52px;
    background: rgba(255, 255, 255, 0.88);
    color: #1e293b;
    font-size: 38px;
    line-height: 48px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
}

.lightbox-nav:hover {
    background: white;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

@media (max-width: 700px) {
    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

/* --- ARON BILDER --- */
.aron-bilder {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 66.666%;
    margin: 25px auto 45px;
}

.aron-bilder img {
    width: 100%;
    height: 130px;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 700px) {
    .aron-bilder {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .aron-bilder img {
        height: auto;
    }
}

/* Wasserzeichen auf allen Galeriebildern 

.gallery-item a,
.aron-bilder a,
.lightbox-content {
    position: relative;
    display: block;
}

.gallery-item a::after,
.aron-bilder a::after,
.lightbox-content::after {
    content: "© www.islandhunde.at";
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    pointer-events: none;
}
*/

.bildrechte {
    margin-top: -25px;
    margin-bottom: 35px;
    color: #64748b;
    font-size: 0.82rem;
    font-style: italic;
    text-align: center;
}

/* --- KONTAKTFORMULAR --- */
.kontaktformular {
    max-width: 620px;
    margin-top: 25px;
}

.kontaktformular label {
    display: block;
    margin: 18px 0 6px;
    font-weight: 600;
}

.kontaktformular input,
.kontaktformular textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
}

.kontaktformular button {
    margin-top: 22px;
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    font: inherit;
    cursor: pointer;
}

.kontakt-falle {
    display: none;
}

.datenschutz-checkbox {
    font-weight: normal !important;
}

.kontakt-meldung {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
}

.kontakt-meldung.erfolg {
    background: #dcfce7;
    color: #166534;
}

.kontakt-meldung.fehler {
    background: #fee2e2;
    color: #991b1b;
}

/* --- DATENSCHUTZ --- */
.legal-content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}
.legal-content-container h3 {
    margin-top: 25px;
    color: #333; /* Oder deine Wunschfarbe */
}
.legal-content-container ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* --- KLEINES LOGO DER PARTNERSEITE --- */
.footer-partner-links a {
    display: inline-flex;
    align-items: center; /* Richtet Text und Bild exakt mittig aneinander aus */
    text-decoration: none;
    gap: 5px; /* Erzeugt einen kleinen Abstand zwischen Bild und Text */
}

.footer-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px; /* Rundet die Ecken des kleinen Bildes ganz leicht ab */
    vertical-align: middle;
}
