body {
    margin: 0 auto;
    background-color: #cae1ff;
    font-family: arial, tahoma, sans-serif;
}

/* ========================================================
   NEUES LAYOUT: CSS GRID (Ersetzt die alte Tabelle komplett)
   ======================================================== */
.main-grid-container {
    display: grid;
    /* 1. Spalte 25px fest (Muster), 2. Spalte nimmt den Rest */
    grid-template-columns: 25px 1fr;
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.sidebar-left {
    background-image: url('images/HG_Muster.jpg');
    background-repeat: repeat-y;
    background-position: top left;
    height: 100%; /* Waechst automatisch bis ganz nach unten! */
}

.content-right {
    display: flex;
    flex-direction: column;
    padding: 3px;
}

.header-banner {
    height: 160px;
    background-image: url('images/Panoramabild_Banner.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
}

/* Der neue Fussbereich */
.footer-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffdead;
    border: 1px solid #ffffff;
    padding: 5px 10px;
    text-align: center;
    font-size: 0.8em;
    color: #1c86ee;
    font-style: italic;
}

.footer-links {
    flex: 1;
}

/* Tablet & Mobile Anpassungen f&uuml;r den Haupt-Container */
@media (max-width: 768px) {
    .main-grid-container {
        width: 100%;
    }
}

/*-----------------HAMBURGER MENÜ-------------------*/
label.hamburg {
    display: block;
    background: #1c86ee; width: 75px; height: 50px;
    position: relative;
    margin-left: 10px; margin-right: auto;
    border-radius: 4px;
}
input#hamburg {display:none}

.line {
    position: absolute;
    left:10px;
    height: 4px; width: 55px;
    background: #fff; border-radius: 2px;
    display: block;
    transition: 0.5s;
    transform-origin: center;
}
.line:nth-child(1) { top: 12px; }
.line:nth-child(2) { top: 24px; }
.line:nth-child(3) { top: 36px; }

#hamburg:checked + .hamburg .line:nth-child(1){
    transform: translateY(12px) rotate(-45deg);
}
#hamburg:checked + .hamburg .line:nth-child(2){
    opacity:0;
}
#hamburg:checked + .hamburg .line:nth-child(3){
    transform: translateY(-12px) rotate(45deg);
}

nav.topmenu {
    height: auto;
    max-height:0;
    overflow: hidden;
    transition: all 0.5s;
    text-align: left;
    font-size: 0.8em;
}
#hamburg:checked + .hamburg  + nav.topmenu {
    max-height: 600px;
}

nav.topmenu a {color:#1c86ee; text-decoration:none;}
nav.topmenu a:hover {
    color: #ffffff;
    text-decoration:none ;
    background-color:#ffdead;
}

nav.topmenu span {
    font-size: 0.9em;
    color: #1c86ee;
    background: #ffdead;
}
nav.topmenu ul {list-style:none;}

/*-----------------ARTIKEL & TEXTE-------------------*/
.spaced {
    margin-bottom: 1.5em;
}

article {
    margin: 10px 0;
    padding: 10px;
    font-size: 0.8em;
    color: #000000;
    font-weight: normal;
}

article.infobox {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0.6em;
    background-color: #f0f0f0;
    font-size: 0.8em;
    color: #000000;
}

article.infobox-navajo {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0.6em;
    background-color: #ffdead;
    font-size: 0.8em;
    color: #000000;
}

h2 {
    text-align: left;
    vertical-align: top;
    font-style: normal;
    color: #1c86ee;
    font-size: 1.5em;
    margin-left: 10px;
}

/*-----------------LINKLISTE & VORSCHLAG-FORMULAR-------------------*/
.link-liste-wrapper {
    margin: 10px;
}

.vorschlag-box {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #b0d4f1;
    margin-bottom: 30px;
}

.vorschlag-box label {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.vorschlag-box input[type="url"],
.vorschlag-box input[type="text"],
.vorschlag-box select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    max-width: 500px;
    box-sizing: border-box;
}

.vorschlag-box button {
    background-color: #0055cc;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.vorschlag-box button:hover {
    background-color: #0044aa;
}

/* DAS KLEBENDE DROPDOWN MENÜ */
.kategorie-navigation {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    margin-bottom: 30px;
    text-align: left;

    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.kategorie-navigation select {
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    max-width: 300px;
    width: 100%;
}

.kategorie-ueberschrift {
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #333333;
    color: #1c86ee;
    font-size: 22px;
}

.kategorie-zaehler {
    font-size: 15px;
    color: #777777;
    font-weight: normal;
    margin-left: 8px;
}

/* NEUE REIHENFOLGE IM RASTER: Link -> Beschreibung -> Klicks */
.link-reihe {
    display: grid;
    /* 250px für Link, restlicher Platz für Beschreibung, 100px für Klicks */
    grid-template-columns: 250px 1fr 100px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #d3d3d3;
    gap: 15px; /* Etwas Abstand zwischen den Spalten */
}

.link-reihe:last-child {
    border-bottom: none;
}

.mein-textlink {
    color: #000000;
    text-decoration: underline;
    padding: 4px 8px;
    border-radius: 3px;
    transition: background-color 0.2s, color 0.2s;
    justify-self: start;
    font-weight: bold;
}

.mein-textlink:hover {
    color: #ffffff;
    background-color: #d3d3d3;
}

.link-kaputt {
    color: #cc0000 !important;
    text-decoration: line-through !important;
    background-color: #ffe6e6;
}

.link-kaputt:hover {
    background-color: #ffcccc;
    color: #990000 !important;
}

/* Die Klicks sind jetzt ganz rechtsbündig */
.klick-ziffer {
    color: #555555;
    font-size: 14px;
    text-align: right;
    white-space: nowrap; /* Verhindert, dass das Wort "Klicks" umbricht */
}

.individueller-text {
    color: #333333;
    font-size: 14px;
    text-align: left;
}

/* Tablet & Mobile Anpassung für die Link-Reihen */
@media (max-width: 768px) {
    .link-reihe {
        /* Auf dem Tablet etwas schmalere Spalten für Link und Klicks */
        grid-template-columns: 180px 1fr 80px;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .link-reihe {
        /* Auf ganz kleinen Handys umbrechen */
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .klick-ziffer {
        text-align: left;
    }
}