/* ===================================
   Alpine Gesellschaft d'Payerbacher
   Modernes Redesign
   =================================== */

:root {
    --primary: #1c4f80;
    --primary-dark: #163d62;
    --accent: #c4983b;
    --background: #eef2f6;
    --surface: #ffffff;
    --text: #2d3748;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px 15px;
    background: linear-gradient(
        180deg,
        #e8edf4,
        #f7f9fc
    );
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
}

/* Hauptcontainer */

table {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 30px;
    border-collapse: separate;
}

/* Kopfbereich */

h1 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

h1 em {
    color: var(--accent);
}

/* Navigation */

td:first-child a {
    display: inline-block;
    margin: 4px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    background: #f3f6fa;
    color: var(--primary);
    font-weight: 500;
    transition: all .25s ease;
}

td:first-child a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Logo in Originalgröße */
img[src*="bilder/payerbacherlogo.JPG"] {
    width: auto;
    max-width: none;
    height: 140px;
    border-radius: 0;
}

/* Alle anderen Bilder */
img:not([src*="bilder/payerbacherlogo.JPG"]) {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Trennlinie */

hr {
    border: none;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent,
        var(--accent),
        transparent
    );
    margin: 25px auto;
}

/* Aktuelles */

h1 + br + br {
    display: none;
}

tr:last-child a {
    display: block;
    max-width: 600px;
    margin: 15px auto;
    padding: 18px;
    text-decoration: none;
    background: #f8fafc;
    border-left: 5px solid var(--accent);
    border-radius: 10px;
    color: var(--text);
    font-size: 1.05rem;
    transition: all .25s ease;
}


/* Links allgemein */

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* Responsive */

@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    table {
        padding: 15px;
    }

    td {
        display: block;
        width: 100%;
        text-align: center;
    }

    td:first-child a {
        display: block;
        margin: 8px auto;
        max-width: 250px;
    }

    h1 {
        font-size: 1.8rem;
    }

    img {
        margin-top: 20px;
    }
}
