/**
 * Libelleninfo.de - Stylesheet
 * Design: Naturbeobachter
 * CSS-Prefix: nb- (Naturbeobachter)
 * Erstellt: 22. Januar 2026
 */

/* ==========================================
   CSS VARIABLES
   ========================================== */

:root {
    /* Primärfarben */
    --nb-primary: #6B4423;      /* Feldbraun */
    --nb-secondary: #87CEEB;    /* Himmelblau */
    --nb-accent: #DEB887;       /* Weizengelb */

    /* Text & Hintergründe */
    --nb-text: #3E2723;         /* Dunkelbraun */
    --nb-bg: #FFF8E7;           /* Pergament */
    --nb-cream: #FFFDF7;        /* Cremeweiß */
    --nb-footer: #4A3728;       /* Moorbraun */
    --nb-white: #FFFFFF;

    /* Schatten & Transparenz */
    --nb-shadow: rgba(107, 68, 35, 0.1);
    --nb-shadow-hover: rgba(107, 68, 35, 0.15);

    /* Typografie */
    --nb-font-heading: 'Crimson Text', Georgia, serif;
    --nb-font-body: 'Nunito', Arial, sans-serif;

    /* Größen */
    --nb-max-width: 1100px;
    --nb-sidebar-width: 320px;
    --nb-radius: 8px;
    --nb-radius-small: 4px;
    --nb-radius-round: 20px;
}

/* ==========================================
   RESET & BASE
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--nb-font-body);
    background-color: var(--nb-bg);
    color: var(--nb-text);
    line-height: 1.8;
    font-size: 16px;
}

/* Subtile Papier-Textur */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%236B4423' fill-opacity='0.02'%3E%3Ccircle cx='50' cy='50' r='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nb-font-heading);
    color: var(--nb-primary);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--nb-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--nb-secondary);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

blockquote {
    font-family: var(--nb-font-heading);
    font-style: italic;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--nb-accent);
    background: var(--nb-cream);
    border-radius: 0 var(--nb-radius) var(--nb-radius) 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   HEADER
   ========================================== */

.nb-header {
    background: var(--nb-cream);
    border-bottom: 3px solid var(--nb-accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nb-header-inner {
    max-width: var(--nb-max-width);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.nb-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nb-logo:hover {
    color: var(--nb-primary);
}

.nb-logo-img {
    height: 50px;
    width: auto;
}

.nb-logo-text {
    font-family: var(--nb-font-heading);
    font-size: 1.75rem;
    color: var(--nb-primary);
    font-weight: 700;
}

.nb-logo-subtitle {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigation */
.nb-nav {
    display: flex;
    gap: 0.5rem;
}

.nb-nav a {
    color: var(--nb-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--nb-radius-small);
    transition: background 0.3s, color 0.3s;
}

.nb-nav a:hover,
.nb-nav a.active {
    background: var(--nb-primary);
    color: var(--nb-white);
}

/* Mobile Menu Toggle */
.nb-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--nb-primary);
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.nb-hero {
    background: linear-gradient(135deg, var(--nb-primary) 0%, #8B5A2B 100%);
    color: var(--nb-white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

/* Dunkles Overlay über dem Hero-Bild für bessere Lesbarkeit */
.nb-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(43, 33, 24, 0.6) 0%,
        rgba(43, 33, 24, 0.75) 50%,
        rgba(43, 33, 24, 0.6) 100%
    );
    z-index: 1;
}

.nb-hero-quote {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(43, 33, 24, 0.85);
    padding: 2.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nb-hero blockquote {
    font-family: var(--nb-font-heading);
    font-style: italic;
    font-size: 1.75rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--nb-white);
    background: transparent;
    border: none;
    padding: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.nb-hero blockquote::before {
    content: '\201C';
    font-size: 4rem;
    display: block;
    opacity: 0.5;
    line-height: 0.5;
    color: var(--nb-accent);
}

.nb-hero cite {
    font-style: normal;
    font-size: 1.1rem;
    opacity: 1;
    color: var(--nb-accent);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nb-hero cite::before {
    content: '\2014 ';
}

/* ==========================================
   MAIN LAYOUT
   ========================================== */

.nb-main-wrapper {
    max-width: var(--nb-max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr var(--nb-sidebar-width);
    gap: 3rem;
}

.nb-main-wrapper.nb-full-width {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.nb-main {
    min-width: 0;
}

/* ==========================================
   SECTION TITLES
   ========================================== */

.nb-section-title {
    font-family: var(--nb-font-heading);
    font-size: 1.75rem;
    color: var(--nb-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--nb-accent);
}

/* ==========================================
   ARTICLE CARDS (Frontpage)
   ========================================== */

.nb-article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nb-article {
    background: var(--nb-cream);
    border-radius: var(--nb-radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 150px 1fr;
    box-shadow: 0 3px 15px var(--nb-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.nb-article:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--nb-shadow-hover);
}

.nb-article-img {
    background: linear-gradient(45deg, var(--nb-secondary), var(--nb-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    overflow: hidden;
}

.nb-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nb-article-content {
    padding: 1.25rem;
}

.nb-article h3 {
    font-family: var(--nb-font-heading);
    color: var(--nb-primary);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.nb-article p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.nb-article-link {
    color: var(--nb-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.nb-article-link:hover {
    text-decoration: underline;
}

/* ==========================================
   CONTENT PAGE
   ========================================== */

.nb-content {
    background: var(--nb-cream);
    padding: 2.5rem;
    border-radius: var(--nb-radius);
    box-shadow: 0 3px 15px var(--nb-shadow);
}

.nb-content h1 {
    margin-bottom: 1rem;
}

.nb-content-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--nb-accent);
}

.nb-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.nb-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.nb-content img {
    margin: 1.5rem 0;
    border-radius: var(--nb-radius);
}

.nb-content figure {
    margin: 1.5rem 0;
}

.nb-content figcaption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

.nb-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.nb-content th,
.nb-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--nb-accent);
}

.nb-content th {
    background: var(--nb-bg);
    font-weight: 600;
    color: var(--nb-primary);
}

.nb-content tr:hover {
    background: var(--nb-bg);
}

/* ==========================================
   SIDEBAR
   ========================================== */

.nb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nb-widget {
    background: var(--nb-cream);
    border-radius: var(--nb-radius);
    padding: 1.5rem;
    box-shadow: 0 3px 15px var(--nb-shadow);
}

.nb-widget h3 {
    font-family: var(--nb-font-heading);
    color: var(--nb-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.nb-about-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--nb-accent), var(--nb-primary));
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.nb-about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nb-widget p {
    font-size: 0.9rem;
    color: #666;
}

.nb-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nb-widget li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--nb-accent);
    margin: 0;
}

.nb-widget li:last-child {
    border-bottom: none;
}

.nb-widget a {
    color: var(--nb-text);
    text-decoration: none;
    transition: color 0.3s;
}

.nb-widget a:hover {
    color: var(--nb-secondary);
}

/* Categories Tags */
.nb-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nb-cat-tag {
    background: var(--nb-accent);
    color: var(--nb-primary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--nb-radius-round);
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.nb-cat-tag:hover {
    background: var(--nb-primary);
    color: var(--nb-white);
}

/* ==========================================
   BREADCRUMB
   ========================================== */

.nb-breadcrumb {
    padding: 1rem 2rem;
    max-width: var(--nb-max-width);
    margin: 0 auto;
    font-size: 0.9rem;
    color: #888;
}

.nb-breadcrumb a {
    color: var(--nb-primary);
}

.nb-breadcrumb span {
    margin: 0 0.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.nb-footer {
    background: var(--nb-footer);
    color: var(--nb-white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 2rem;
}

.nb-footer-inner {
    max-width: var(--nb-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.nb-footer h4 {
    font-family: var(--nb-font-heading);
    color: var(--nb-accent);
    margin-bottom: 1rem;
}

.nb-footer p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.7;
}

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

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

.nb-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.nb-footer a:hover {
    color: var(--nb-accent);
}

.nb-footer-bottom {
    max-width: var(--nb-max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================
   LEGAL PAGES
   ========================================== */

.nb-legal {
    background: var(--nb-cream);
    padding: 2.5rem;
    border-radius: var(--nb-radius);
    box-shadow: 0 3px 15px var(--nb-shadow);
}

.nb-legal h1 {
    margin-bottom: 2rem;
}

.nb-legal h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.nb-legal h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.nb-legal address {
    font-style: normal;
    margin: 1rem 0;
    line-height: 1.8;
}

/* ==========================================
   404 PAGE
   ========================================== */

.nb-404 {
    text-align: center;
    padding: 4rem 2rem;
}

.nb-404 h1 {
    font-size: 6rem;
    margin-bottom: 0.5rem;
    color: var(--nb-accent);
}

.nb-404 h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.nb-404 p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.nb-btn {
    display: inline-block;
    background: var(--nb-primary);
    color: var(--nb-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--nb-radius-small);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.nb-btn:hover {
    background: #5a3a1c;
    color: var(--nb-white);
}

/* ==========================================
   UTILITIES
   ========================================== */

.nb-text-center {
    text-align: center;
}

.nb-mt-1 { margin-top: 0.5rem; }
.nb-mt-2 { margin-top: 1rem; }
.nb-mt-3 { margin-top: 1.5rem; }
.nb-mt-4 { margin-top: 2rem; }

.nb-mb-1 { margin-bottom: 0.5rem; }
.nb-mb-2 { margin-bottom: 1rem; }
.nb-mb-3 { margin-bottom: 1.5rem; }
.nb-mb-4 { margin-bottom: 2rem; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 900px) {
    .nb-main-wrapper {
        grid-template-columns: 1fr;
    }

    .nb-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nb-sidebar {
        order: 2;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .nb-header-inner {
        padding: 1rem;
    }

    .nb-nav {
        display: none;
    }

    .nb-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nb-cream);
        padding: 1rem;
        box-shadow: 0 5px 15px var(--nb-shadow);
    }

    .nb-menu-toggle {
        display: block;
    }

    .nb-article {
        grid-template-columns: 1fr;
    }

    .nb-article-img {
        height: 180px;
    }

    .nb-hero {
        padding: 2.5rem 1rem;
    }

    .nb-hero-quote {
        padding: 1.5rem 1.25rem;
        margin: 0 0.5rem;
    }

    .nb-hero blockquote {
        font-size: 1.2rem;
    }

    .nb-hero blockquote::before {
        font-size: 2.5rem;
    }

    .nb-main-wrapper {
        padding: 2rem 1rem;
    }

    .nb-content {
        padding: 1.5rem;
    }

    .nb-legal {
        padding: 1.5rem;
    }

    .nb-404 h1 {
        font-size: 4rem;
    }
}

/* Print Styles */
@media print {
    .nb-header,
    .nb-footer,
    .nb-sidebar,
    .nb-hero {
        display: none;
    }

    .nb-main-wrapper {
        display: block;
        max-width: 100%;
        padding: 0;
    }

    .nb-content {
        box-shadow: none;
        padding: 0;
    }

    a {
        color: var(--nb-text);
    }
}
.nb-gallery-link { margin-top: 2rem; padding: 1rem; background: var(--nb-light-bg); border-radius: 8px; text-align: center; }
.nb-gallery-link a { color: var(--nb-primary); font-weight: 600; text-decoration: none; }
.nb-gallery-link a:hover { text-decoration: underline; }
