/* ================================
   FARBSYSTEM
================================ */

:root {
    --green: #1E8F4B;
    --green-dark: #0F5A2A;
    --red: #C00000;
    --gray-light: #F4F4F4;
    --gray-dark: #222;
    --white: #fff;
}

/* ================================
   GLOBAL
================================ */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--gray-light);
    color: var(--gray-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

img {
    max-width: 100%;
    height: auto;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.left {
    display: block;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.right {
    display: block;
    margin-left: 0;
    margin-right: auto;
    text-align: right;
}

/* ================================
   HEADER + NAVIGATION
================================ */

.header {
    background: var(--green);
    padding: 15px 0;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
}

.nav a {
    color: var(--white);
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover {
    color: var(--gray-light);
}

.nav a.active {
    color: blue;      /* kräftiges Blau */
    font-weight: bold;   /* optional, sieht aber gut aus */
}

/* ================================
   HERO-BEREICH
================================ */

.hero {
    background: var(--green-dark);
    color: var(--white);
    padding: 15px 0;
    text-align: center;
}

/* Flex-Layout */
.hero-flex {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Links – Mitte – Rechts */
    align-items: center;
    margin-top: 20px;
}

/* Linke Spalte */
.hero-left {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    padding-left: 40px;   /* <<< DAS MACHT GENAU DEN EFFEKT AUS */
}

/* Besucherzähler */
.visitor-counter {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

/* Rechte Spalte */
.hero-right {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Logos */
.hero-logo {
    height: 120px;
    width: auto;
}

.hero-logo-small {
    height: 70px;
    width: auto;
}

.hero-logo-big {
    height: 180px;
    width: auto;
}

/* Titel */
.hero-title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--white);
    text-align: center;
}

.hero-empty {
    grid-column: 3;
}

/* ================================
   BUTTONS
================================ */

.btn {
    background: var(--red);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

.btn:hover {
    background: #a00000;
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* ================================
   CARDS
================================ */

.card,
.news-card,
.contact-card,
.team-card,
.training-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    transition: 0.2s;
}

/* ================================
   GRID-LAYOUTS
================================ */

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

/* ================================
   TEAM-KARTEN
================================ */

.team-card {
    text-align: center;
}

.team-card img {
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.team-card h3 {
    margin: 10px 0 5px;
    color: var(--green-dark);
}

/* ================================
   ARTIKEL-BILDER
================================ */

.article-img {
	display: block;
    width: 100%;
    max-width: 640px;
    border-radius: 8px;
    margin: 15px auto;
}

.article-img-small {
    width: 100%;
    max-width: 160px;
    border-radius: 8px;
    margin: 15px auto;
}

.article-img-big {
	display: block;
    width: 100%;
    max-width: 780px;
    border-radius: 8px;
    margin: 15px auto;
}

.image-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
    text-align: center;
}

/* ================================
   TABELLEN
================================ */

.training-table,
.team-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.training-table th,
.team-table th {
    background: var(--green);
    color: var(--white);
    padding: 8px;
}

.training-table td,
.team-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

/* ================================
   FOOTER
================================ */

.footer {
    background: var(--green-dark);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer a {
    color: var(--white);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ================================
   GALLERY
================================ */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 25px;
}

.gallery-grid img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: 0.25s;
}

.gallery-grid img:hover {
	transform: scale(1.03);
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.backlink {
	margin-top: 20px;
	display: inline-block;
	color: var(--green-dark);
	font-weight: bold;
}
