/* Kinder vom Sachsenhof - Stylesheet */
/* Nachbau des Original-Designs mit gelbem Hintergrund und grünem Header */

/* Body und Hintergrund */
body#bg {
    background-color: #f5e6a8; /* Gelber Hintergrund */
    background-image: repeating-linear-gradient(
        45deg,
        #f5e6a8,
        #f5e6a8 10px,
        #f0d98a 10px,
        #f0d98a 20px
    ); /* Diagonale Streifen */
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333;
}

/* Container */
#container {
    width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

#container_inner {
    padding: 0;
}

/* Wrapper für die Spalten */
.content-wrapper {
    display: flex;
    gap: 0;
}

/* Header - Grüner Banner */
#header {
    background-color: #4a7c3f; /* Grün */
    width: 100%;
    height: 120px;
    position: relative;
}

#header_inner {
    height: 100%;
    padding: 10px 20px;
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    margin-right: 20px;
}

.sun-logo-placeholder {
    width: 80px;
    height: 80px;
    font-size: 60px;
    line-height: 80px;
    text-align: center;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    /* Platzhalter für Logo - sollte durch echtes Bild ersetzt werden */
}

.header-text {
    color: white;
}

.header-text h1 {
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.header-text .subtitle {
    margin: 5px 0 0 0;
    font-size: 16px;
    color: white;
    font-style: italic;
}


/* Linke Spalte - Navigation */
#leftcol {
    width: 220px;
    background-color: #fff;
    padding: 10px;
    min-height: 600px;
    flex-shrink: 0;
}

#leftcol_inner {
    width: 100%;
}

.module {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
}

.module h3 {
    margin: 0 0 10px 0;
    padding: 5px;
    background-color: #f5e6a8;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 2px solid #4a7c3f;
}

.module table {
    width: 100%;
}

.module table td {
    padding: 3px 0;
}

/* Links */
a.mainlevel {
    color: #4a7c3f;
    text-decoration: none;
    display: block;
    padding: 3px 5px;
}

a.mainlevel:hover {
    background-color: #f5e6a8;
    color: #2d5a23;
}

a.mainlevel.active {
    background-color: #4a7c3f;
    color: white;
    font-weight: bold;
}

a.sublevel {
    color: #666;
    text-decoration: none;
    font-size: 11px;
    padding-left: 10px;
}

a.sublevel:hover {
    color: #4a7c3f;
    text-decoration: underline;
}

.submenu {
    margin-left: 10px;
    margin-top: 5px;
}

/* Suche - Modernisiert */
.search-sidebar-form {
    margin-top: 10px;
}

.search-sidebar-wrapper {
    display: flex;
    gap: 5px;
    align-items: stretch;
}

.search-sidebar-input {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.search-sidebar-input:focus {
    border-color: #4a7c3f;
    box-shadow: 0 0 0 2px rgba(74, 124, 63, 0.1);
}

.search-sidebar-input::placeholder {
    color: #999;
    font-style: italic;
}

.search-sidebar-button {
    padding: 8px 12px;
    background-color: #4a7c3f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-sidebar-button:hover {
    background-color: #3a6432;
    transform: scale(1.05);
}

.search-sidebar-button:active {
    transform: scale(0.98);
}

/* Legacy Support */
.inputbox {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    font-size: 12px;
}

/* Besucherzähler */
.visitor-counter {
    font-size: 24px;
    font-weight: bold;
    color: #4a7c3f;
    padding: 10px;
    background-color: #f5e6a8;
    border: 2px solid #4a7c3f;
}

/* Hauptinhalt */
#maincol_no_right {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    min-height: 600px;
}

#maincol_inner {
    width: 100%;
}

#maincol_inner_in {
    width: 100%;
}

/* Content Styles */
.contentpaneopen {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.contentheading {
    font-size: 18px;
    font-weight: bold;
    color: #4a7c3f;
    padding: 10px;
    background-color: #f5e6a8;
    border-bottom: 2px solid #4a7c3f;
}

.contentheading h1 {
    margin: 0;
    font-size: 18px;
    color: #4a7c3f;
}

/* Clearfix */
.clr {
    clear: both;
}

/* Footer */
#footer {
    clear: both;
    background-color: #fff;
    padding: 10px;
    border-top: 1px solid #ddd;
    text-align: center;
}

/* Copyright */
.copy {
    text-align: center;
    padding: 10px;
    font-size: 11px;
    color: #666;
}

.copy a {
    color: #4a7c3f;
    text-decoration: none;
}

.copy a:hover {
    text-decoration: underline;
}

.descript {
    text-align: center;
    padding: 5px;
    font-size: 10px;
    color: #999;
}

.descript a {
    color: #999;
    text-decoration: none;
}

/* Responsive Design (optional, für moderne Browser) */
@media (max-width: 1024px) {
    #container {
        width: 100%;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    #leftcol {
        width: 100%;
    }
    
    #maincol_no_right {
        width: 100%;
    }
}

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

/* Content-Bereich Styling */
.content-area {
    width: 100%;
}

.content-area p {
    text-align: justify;
    margin: 10px 0;
}

.content-area cite {
    font-style: italic;
    color: #666;
    display: block;
    margin: 10px 0;
    padding-left: 20px;
}

.content-area em {
    font-style: italic;
}

.content-area strong {
    font-weight: bold;
    color: #4a7c3f;
}

/* Artikel-Trenner */
.article_seperator {
    display: block;
    height: 1px;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

/* Button-Heading (Print/Email Buttons) */
.buttonheading {
    text-align: right;
    padding: 5px;
}

.buttonheading img {
    border: none;
    margin-left: 5px;
}

/* Verbesserte Typografie */
.content-area h1 {
    font-size: 20px;
    color: #4a7c3f;
    margin: 20px 0 15px 0;
    line-height: 1.4;
}

.content-area h4 {
    font-size: 16px;
    color: #4a7c3f;
    margin: 15px 0 10px 0;
}

.content-area hr {
    border: none;
    border-top: 2px solid #f5e6a8;
    margin: 20px 0;
}

/* Inline-Styles für Content (aus PHP-Dateien) */
.content-area span[style*="font-size"] {
    display: inline;
}

.content-area img[style*="float"] {
    margin: 10px;
}

/* Responsive Bilder */
@media (max-width: 768px) {
    .content-area img[style*="float"] {
        float: none !important;
        display: block;
        margin: 10px auto;
        max-width: 100%;
    }
}

/* Listen */
ul, ol {
    margin: 10px 0;
    padding-left: 30px;
}

li {
    margin: 5px 0;
}

.themen-list {
    list-style: none;
    padding-left: 0;
}

.themen-list > li {
    margin: 20px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 3px solid #4a7c3f;
}

.themen-list .category {
    font-size: 16px;
    font-weight: bold;
    color: #4a7c3f;
    text-decoration: none;
}

.themen-list .category:hover {
    text-decoration: underline;
}

.themen-list ul {
    margin-top: 10px;
    padding-left: 20px;
}

.themen-list ul li {
    list-style: disc;
    color: #666;
    font-size: 12px;
}

.componentheading {
    font-size: 20px;
    font-weight: bold;
    color: #4a7c3f;
    padding: 10px;
    background-color: #f5e6a8;
    border-bottom: 2px solid #4a7c3f;
    margin-bottom: 20px;
}

.back_button {
    margin-top: 20px;
    padding: 10px;
}

.back_button a {
    color: #4a7c3f;
    text-decoration: none;
    font-weight: bold;
}

.back_button a:hover {
    text-decoration: underline;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    color: #4a7c3f;
    margin: 15px 0 10px 0;
}

h1 {
    font-size: 20px;
}

h2 {
    font-size: 18px;
}

h3 {
    font-size: 16px;
}

/* Absätze */
p {
    margin: 10px 0;
    line-height: 1.6;
}

/* Tabellen */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

td, th {
    padding: 8px;
    border: 1px solid #ddd;
}

th {
    background-color: #f5e6a8;
    color: #4a7c3f;
    font-weight: bold;
}

/* ===================================
   MODERNE "ZUM BUCH" SEITE STYLES
   =================================== */

/* Book Page Container */
.book-page {
    max-width: 100%;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f5e6a8 0%, #e8d89a 100%);
    color: #333;
    padding: 30px 25px;
    margin: -20px -20px 30px -20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #4a7c3f;
}

.page-header h1 {
    color: #4a7c3f;
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.page-header .subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-style: italic;
}

/* Intro Section */
.intro-section {
    margin-bottom: 30px;
}

.intro-content {
    background-color: #f9f9f9;
    border-left: 4px solid #4a7c3f;
    padding: 20px;
    border-radius: 4px;
}

.intro-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Content Cards */
.content-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(to right, #f5e6a8, #f0d98a);
    border-bottom: 3px solid #4a7c3f;
    padding: 15px 20px;
}

.card-header h2 {
    color: #4a7c3f;
    font-size: 22px;
    margin: 0;
    font-weight: bold;
}

.card-body {
    padding: 25px;
}

/* Media Section */
.media-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.media-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.media-text {
    width: 100%;
    text-align: left;
}

.media-text h3 {
    color: #4a7c3f;
    font-size: 20px;
    margin: 0 0 15px 0;
}

.media-text p {
    margin: 0 0 12px 0;
    line-height: 1.7;
}

.media-caption {
    font-size: 15px;
    color: #555;
    font-style: italic;
}

/* Creation Section */
.creation-intro {
    margin-bottom: 20px;
}

.lead-text {
    font-size: 18px;
    font-weight: 600;
    color: #4a7c3f;
    line-height: 1.6;
    margin: 0;
}

.creation-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.creation-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.creation-text {
    width: 100%;
    text-align: left;
}

.creation-text p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

/* Author Section */
.author-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.author-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 5px solid #f5e6a8;
    display: block;
    margin: 0 auto;
}

.author-text {
    width: 100%;
    text-align: left;
}

.author-greeting {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.author-text p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

/* Lexicon Section */
.lexicon-content p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 15px 0;
}

/* Names Section */
.names-content h3 {
    color: #4a7c3f;
    font-size: 20px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.names-content p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4a7c3f 0%, #5a9c4f 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #5a9c4f 0%, #6aac5f 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    color: white;
}

/* More Info Sidebar */
.more-info {
    background-color: #f9f9f9;
    border: 2px solid #4a7c3f;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.more-info h3 {
    color: #4a7c3f;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a7c3f;
}

.more-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.more-info li {
    margin: 10px 0;
}

.more-info a {
    color: #4a7c3f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
}

.more-info a:hover {
    color: #2d5a23;
    text-decoration: underline;
}

.more-info a:before {
    content: "→ ";
    margin-right: 5px;
}

/* Page Navigation */
.page-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: left;
}

.back-link {
    display: inline-block;
    color: #4a7c3f;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #4a7c3f;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #4a7c3f;
    color: white;
}

/* Responsive Design für Book Page */
@media (max-width: 768px) {
    .page-header {
        margin: -20px -20px 20px -20px;
        padding: 25px 20px;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .page-header .subtitle {
        font-size: 14px;
    }
    
    .media-content,
    .creation-content,
    .author-content {
        flex-direction: column;
    }
    
    .media-image,
    .creation-image,
    .author-image {
        max-width: 100%;
    }
    
    .card-body {
        padding: 20px 15px;
    }
    
    .content-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 22px;
    }
    
    .read-more-btn {
        display: block;
        text-align: center;
    }
    
    .card-header h2 {
        font-size: 18px;
    }
}

/* ==========================================
   Geschichten-Seiten Styles
   ========================================== */

/* Story Page Container */
.story-page {
    padding: 0;
}

/* Bilder mittig zentriert (wichtig!) */
.story-image-container {
    text-align: center;
    margin: 25px 0;
    padding: 20px 0;
}

.story-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin: 0 auto;
}

/* Bildunterschriften */
.image-caption {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Lead Text für Einleitungen */
.lead-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4a7c3f;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Blockquotes für Zitate */
blockquote {
    background-color: #f9f9f9;
    border-left: 4px solid #4a7c3f;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

blockquote strong {
    color: #4a7c3f;
    font-weight: 600;
}

blockquote cite {
    font-style: italic;
    color: #666;
}

/* Historische Zitate (für Widukind-Seite) */
.historical-quote {
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Notizen und Hinweise */
.note {
    background-color: #fffbf0;
    border: 1px solid #f5e6a8;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

/* Vaterunser Versionen (Deutsch/Latein) */
.vaterunser-versions {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.vaterunser-column {
    flex: 1;
}

.vaterunser-column h4 {
    color: #4a7c3f;
    margin-bottom: 15px;
    text-decoration: underline;
}

.vaterunser-column p {
    line-height: 1.8;
    font-size: 14px;
}

/* Zurück-Button Container */
.back-button-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Horizontale Linie für Abschnittstrennung */
hr {
    border: 0;
    border-top: 2px solid #e0e0e0;
    margin: 30px 0;
}

/* H3 Überschriften in Geschichten */
.content-card h3 {
    color: #4a7c3f;
    font-size: 18px;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

/* H4 Überschriften in Geschichten */
.content-card h4 {
    color: #4a7c3f;
    font-size: 16px;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

/* Absätze in Geschichten */
.content-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Listen in Geschichten */
.content-card ul {
    margin: 15px 0;
    padding-left: 25px;
}

.content-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive für Geschichten-Seiten */
@media (max-width: 768px) {
    .vaterunser-versions {
        flex-direction: column;
        gap: 20px;
    }
    
    .story-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .lead-text {
        font-size: 15px;
    }
    
    .content-card h3 {
        font-size: 16px;
    }
    
    .content-card h4 {
        font-size: 15px;
    }
}

/* Quellenverzeichnis - Spezifische Styles */
.sources-list {
    list-style-type: none;
    padding-left: 0;
    margin: 20px 0;
}

.sources-list li {
    background-color: #f9f9f9;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-left: 3px solid #4a7c3f;
    border-radius: 4px;
    line-height: 1.6;
    transition: background-color 0.2s ease;
}

.sources-list li:hover {
    background-color: #f0f0f0;
}

/* Responsive für Quellenverzeichnis */
@media (max-width: 480px) {
    .sources-list li {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ============================================================================
   GÄSTEBUCH-SPEZIFISCHE STYLES
   ============================================================================ */

/* Formular */
.guestbook-form-card .card-body form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #4a7c3f;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-control {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4a7c3f;
    box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.1);
}

.form-control.is-invalid {
    border-color: #dc2626;
}

.invalid-feedback {
    color: #dc2626;
    font-size: 14px;
    margin-top: 5px;
}

/* Honeypot - versteckt für Menschen */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    tabindex: -1;
}

/* Gästebuch-Einträge */
.guestbook-entry {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    transition: box-shadow 0.2s ease;
}

.guestbook-entry:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.guestbook-entry:last-child {
    margin-bottom: 0;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    color: #4a7c3f;
    font-weight: 600;
}

.entry-header time {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.entry-message {
    white-space: pre-line;
    line-height: 1.6;
    color: #333;
}

.no-entries {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 25px;
}

.flash {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.flash-success {
    background-color: #d1fae5;
    border-color: #16a34a;
    color: #065f46;
}

.flash-warning {
    background-color: #fed7aa;
    border-color: #ea580c;
    color: #7c2d12;
}

.flash-info {
    background-color: #dbeafe;
    border-color: #4a7c3f;
    color: #1e40af;
}

/* Admin-Bereich */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #f9f9f9;
    border: 2px solid #4a7c3f;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #4a7c3f;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    display: block;
}

/* Admin Entry Styling */
.admin-entry {
    background-color: white;
}

.entry-meta {
    margin: 10px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 13px;
}

.entry-meta code {
    background-color: #e5e7eb;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.entry-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-success {
    background-color: #16a34a;
    color: white;
}

.btn-success:hover {
    background-color: #15803d;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: #ea580c;
    color: white;
}

.btn-warning:hover {
    background-color: #c2410c;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 10px;
}

.badge-warning {
    background-color: #ea580c;
    color: white;
}

/* Responsive für Gästebuch */
@media (max-width: 768px) {
    .entry-header {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .entry-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .guestbook-entry {
        padding: 15px;
    }
    
    .form-control {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
}

/* ============================================================================
   STARTSEITE (HOME) STYLES
   ============================================================================ */

/* Home Page Container */
.home-page {
    max-width: 100%;
    margin: 0 auto;
}

/* Hero Header - Großer Willkommensbereich */
.hero-header {
    background: linear-gradient(135deg, #f5e6a8 0%, #e8d89a 100%);
    color: #333;
    padding: 50px 30px;
    margin: -20px -20px 40px -20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid #4a7c3f;
}

.hero-header h1 {
    color: #2d5a23;
    font-size: 36px;
    margin: 0 0 15px 0;
    font-weight: bold;
    position: relative;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: #444;
    margin: 0;
    font-style: italic;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Grid - Hauptkarten */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Feature Card */
.feature-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #4a7c3f, #5a9c4f);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #4a7c3f;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    filter: grayscale(20%);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.feature-content h2 {
    color: #4a7c3f;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.feature-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    min-height: 60px;
}

.feature-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4a7c3f 0%, #5a9c4f 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 124, 63, 0.2);
}

.feature-btn:hover {
    background: linear-gradient(135deg, #5a9c4f 0%, #6aac5f 100%);
    box-shadow: 0 6px 16px rgba(74, 124, 63, 0.3);
    transform: translateY(-2px);
    color: white;
}

/* Highlights Section */
.highlights-section {
    margin-bottom: 40px;
}

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

.highlight-item {
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #4a7c3f;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background-color: #f5f5f5;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.highlight-item h3 {
    color: #4a7c3f;
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.highlight-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.text-link {
    color: #4a7c3f;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #2d5a23;
    text-decoration: underline;
}

/* CTA Section - Call to Action */
.cta-section {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f5e6a8 0%, #e8d89a 100%);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #4a7c3f;
}

.cta-content h2 {
    color: #4a7c3f;
    font-size: 28px;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.cta-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4a7c3f 0%, #5a9c4f 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(74, 124, 63, 0.3);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #5a9c4f 0%, #6aac5f 100%);
    box-shadow: 0 8px 20px rgba(74, 124, 63, 0.4);
    transform: translateY(-3px) scale(1.05);
    color: white;
}

/* Responsive Design für Startseite */
@media (max-width: 768px) {
    .hero-header {
        padding: 40px 25px;
        margin: -20px -20px 30px -20px;
    }
    
    .hero-header h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-header {
        padding: 30px 20px;
    }
    
    .hero-header h1 {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
    
    .feature-content h2 {
        font-size: 20px;
    }
    
    .feature-content p {
        min-height: auto;
        font-size: 14px;
    }
    
    .cta-content h2 {
        font-size: 20px;
    }
    
    .cta-content p {
        font-size: 15px;
    }
    
    .cta-btn {
        padding: 14px 32px;
        font-size: 15px;
    }
}

/* ============================================================================
   SUCHSEITE - STYLES
   ============================================================================ */

/* Hauptsuchformular */
.search-main-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: stretch;
}

.search-main-input {
    flex: 1;
    padding: 12px 18px;
    font-size: 15px;
    border: 2px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.search-main-input:focus {
    border-color: #4a7c3f;
    box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.1);
}

.search-main-input::placeholder {
    color: #999;
}

.search-help {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin: 0;
    font-style: italic;
}

/* Suchergebnisse */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-item {
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #4a7c3f;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background-color: #f5f5f5;
    border-left-width: 6px;
    transform: translateX(3px);
}

.search-result-item h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #4a7c3f;
}

.search-result-item h3 a {
    color: #4a7c3f;
    text-decoration: none;
    font-weight: bold;
}

.search-result-item h3 a:hover {
    color: #2d5a23;
    text-decoration: underline;
}

.result-description {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

/* Keine Ergebnisse */
.no-results {
    text-align: left;
}

.no-results .lead-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.no-results h3 {
    color: #4a7c3f;
    font-size: 20px;
    margin: 25px 0 15px 0;
}

.no-results ul {
    margin: 15px 0 25px 20px;
    padding: 0;
}

.no-results li {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
}

/* Suchkategorien */
.search-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.search-category-item {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-top: 3px solid #4a7c3f;
    transition: all 0.3s ease;
}

.search-category-item:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-category-item h3 {
    margin: 0 0 10px 0;
    color: #4a7c3f;
    font-size: 18px;
}

.search-category-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Responsive für Suchseite */
@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .search-main-input {
        width: 100%;
    }
    
    .search-categories {
        grid-template-columns: 1fr;
    }
    
    .search-result-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .search-main-input {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .search-result-item h3 {
        font-size: 18px;
    }
    
    .result-description {
        font-size: 14px;
    }
}
