/* Reset und Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    border-bottom: 3px solid #34495e;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3498db;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
}

nav a:hover,
nav a.active {
    background-color: #34495e;
    border: 1px solid #3498db;
}

/* Hero Section */
.hero {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

.welcome {
    text-align: center;
    margin-bottom: 3rem;
    background-color: white;
    padding: 2rem;
    border: 1px solid #ddd;
}

.welcome h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.welcome p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Teaser Cards */
.teasers {
    margin: 3rem 0;
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.teaser-card {
    background: white;
    border: 1px solid #ddd;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.teaser-card:hover {
    border-color: #3498db;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.teaser-image {
    margin-bottom: 1.5rem;
}

.teaser-image .placeholder {
    font-size: 3rem;
    display: block;
}

.teaser-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.teaser-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.teaser-card p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #3498db;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

/* Content Pages Styles */
.content-header {
    background-color: #c0392b;
    color: white;
    text-align: center;
    padding: 2.5rem 0;
}

.content-header.nashörner {
    background-color: #8e44ad;
}

.content-header.elefanten {
    background-color: #27ae60;
}

.content-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.info-section {
    background: white;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    color: #27ae60;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 0.5rem;
}

.nashörner .info-section h3 {
    color: #8e44ad;
    border-bottom-color: #8e44ad;
}

.info-section h4 {
    color: #2c3e50;
    margin: 1.5rem 0 0rem 0;
}

/* Map Section */
.map-section {
    margin: 3rem 0;
    text-align: center;
}

.map-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.map-placeholder {
    background: white;
    border: 2px dashed #3498db;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    font-size: 1rem;
    color: #3498db;
    border-radius: 8px;
}

/* Echte Karte */
.map-container {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Leaflet Karten Styles */
.leaflet-map {
    height: 450px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin: 1rem 0;
}

.legend {
    background: white;
    border-radius: 5px;
    border: 2px solid #ccc;
    padding: 12px 15px;
    font-size: 12px;
    line-height: 22px;
    color: #555;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.legend h4 {
    margin: 0 0 8px;
    color: #777;
    font-size: 14px;
    font-weight: bold;
}

.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 10px;
    margin-bottom: 5px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Leaflet Watermark ausblenden */
.leaflet-control-attribution {
    display: none !important;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.nashörner th {
    background-color: #8e44ad;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f0f8ff;
}

/* Lists */
ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.3rem;
}

/* Verschachtelte Listen */
ul ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

ul ul li {
    list-style-type: circle;
}

/* Zitate */
blockquote {
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    position: relative;
    text-align: center;
    max-width: 700px;
}

blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    top: -10px;
    left: 10px;
}

blockquote p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
}

/* Hervorhebungen */
.highlight {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
}

.important {
    color: #e74c3c;
    font-weight: bold;
}

.success {
    color: #27ae60;
    font-weight: bold;
}

/* Versetzte Anordnung */
.offset-content {
    position: relative;
    transform: translateX(20px);
    margin-left: 2rem;
}

/* Contact Form Styles */
.contact-form {
    background: #f9f9f9;
    padding: 2rem;
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Button im Formular */
button[type="submit"] {
    cursor: pointer;
}

/* Gallery Styles */
.gallery {
    margin: 3rem 0;
}

.gallery h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #2c3e50;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: white;
    border: 1px solid #ddd;
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: #3498db;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.placeholder-image {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.gallery-item p {
    font-weight: 500;
    color: #555;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid #34495e;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        justify-content: center;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .teaser-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .welcome {
        margin: 1rem 0;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .teaser-card,
    .info-section,
    .contact-form {
        padding: 1.5rem;
    }

    .content-header {
        padding: 2rem 0;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.8rem 0.5rem;
    }
}