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

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

/* Header und Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-container h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #34495e;
}

/* Hauptinhalt */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero-Bereich */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.image-container {
    margin: 2rem 0;
}

.hero-image-fullwidth {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image-fullwidth:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.audio-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 1rem;
}

.audio-button:hover {
    background-color: #219a52;
}

#musikausschnitt {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    display: block;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.0rem;
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 1rem;
}

/* Quick Links */
.quick-links {
    margin-top: 3rem;
}

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

.link-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.link-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.link-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.link-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Seiten-Layout */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
}

.page-content h3 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
}

/* Admin-Bereich */
.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.admin-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

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

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

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

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #219a52;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* HTML-Editor Styles */
.editor-toolbar {
    margin-bottom: 0.5rem;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 5px 5px 0 0;
}

.editor-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    margin-right: 0.25rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.editor-btn:hover {
    background-color: #e9ecef;
}

.html-editor {
    min-height: 200px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 0 0 5px 5px;
    background-color: white;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    font-size: 0.95rem; /* Kleinere Standard-Schriftgröße */
    outline: none;
}

.html-editor:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

.editor-separator {
    color: #ccc;
    margin: 0 0.5rem;
    font-weight: normal;
}

/* Auch normale Textareas kleiner machen */
.form-group textarea {
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

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

.footer-content a:hover {
    color: white;
}

.footer-content .admin-link {
    color: #2c3e50; /* Gleiche Farbe wie Footer-Hintergrund */
}

.footer-content .admin-link:hover {
    color: #34495e; /* Leicht sichtbar beim Hover */
}

/* Responsive Design - EINFACH GEHALTEN */

/* Hamburger-Menü NUR für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        max-height: 300px;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid #34495e;
        border-radius: 0;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
}

/* Bild-Anpassungen für verschiedene Orientierungen */
@media (max-width: 480px) and (orientation: landscape) {
    /* Querformat: Mehr vom Bild zeigen */
    .hero-image-fullwidth {
        max-height: 60vh;
        object-position: center;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    /* Hochformat: Fokus auf Dirigent, aber etwas mehr Kontext */
    .hero-image-fullwidth {
        max-height: 50vh;
        object-position: 75% top;
    }
}

/* Allgemeine Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 1rem;
    }
    
    .page-container {
        padding: 1rem;
    }
}

/* Weitere kleine Anpassungen */
@media (max-width: 480px) {
    .subtitle {
        font-size: 1rem;
    }
    
    .audio-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}/* Auch normale Textareas kleiner machen */
.form-group textarea {
    font-size: 0.95rem;
}

/* Erweiterte Content-Einträge */
.content-entry {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ecf0f1;
}

.content-entry:last-child {
    border-bottom: none;
}

.entry-title {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.entry-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.entry-image {
    flex: 0 0 50%;
    max-width: 50%;
}

.entry-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-text {
    flex: 1;
    font-size: 1.0rem;
    line-height: 1.7;
}

.entry-text.full-width {
    flex: 1 1 100%;
    max-width: 100%;
}

.entry-text p {
    margin-bottom: 1rem;
}

.no-content {
    text-align: center;
    padding: 3rem 1rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Admin-Bereich für erweiterte Einträge */
.entries-list {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.entry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

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

.entry-actions {
    display: flex;
    gap: 0.5rem;
}

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

.btn-danger:hover {
    background-color: #c82333;
}

/* Responsive Design für Content-Einträge */
@media (max-width: 768px) {
    .entry-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .entry-image {
        flex: none;
        max-width: 100%;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .entry-actions {
        justify-content: center;
    }
}/* Reset und Grundeinstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Header und Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-container h1 a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #34495e;
}

/* Hauptinhalt */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero-Bereich */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.image-container {
    margin: 2rem 0;
}

.hero-image-fullwidth {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image-fullwidth:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.audio-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 1rem;
}

.audio-button:hover {
    background-color: #219a52;
}

#musikausschnitt {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    display: block;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.0rem;
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 1rem;
}

/* Quick Links */
.quick-links {
    margin-top: 3rem;
}

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

.link-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.link-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.link-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.link-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Seiten-Layout */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content h2 {
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
}

.page-content h3 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
}

/* Admin-Bereich */
.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.admin-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

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

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

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

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #219a52;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

/* HTML-Editor Styles */
.editor-toolbar {
    margin-bottom: 0.5rem;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 5px 5px 0 0;
}

.editor-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    margin-right: 0.25rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.editor-btn:hover {
    background-color: #e9ecef;
}

.html-editor {
    min-height: 200px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 0 0 5px 5px;
    background-color: white;
    line-height: 1.6;
    font-family: Arial, sans-serif;
    font-size: 0.95rem; /* Kleinere Standard-Schriftgröße */
    outline: none;
}

.html-editor:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

.editor-separator {
    color: #ccc;
    margin: 0 0.5rem;
    font-weight: normal;
}

/* Auch normale Textareas kleiner machen */
.form-group textarea {
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

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

.footer-content a:hover {
    color: white;
}

.footer-content .admin-link {
    color: #2c3e50; /* Gleiche Farbe wie Footer-Hintergrund */
}

.footer-content .admin-link:hover {
    color: #34495e; /* Leicht sichtbar beim Hover */
}

/* Responsive Design - EINFACH GEHALTEN */

/* Hamburger-Menü NUR für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        max-height: 300px;
    }
    
    .nav-menu a {
        padding: 1rem;
        border-bottom: 1px solid #34495e;
        border-radius: 0;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
}

/* Bild-Anpassungen für verschiedene Orientierungen */
@media (max-width: 480px) and (orientation: landscape) {
    /* Querformat: Mehr vom Bild zeigen */
    .hero-image-fullwidth {
        max-height: 60vh;
        object-position: center;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    /* Hochformat: Fokus auf Dirigent, aber etwas mehr Kontext */
    .hero-image-fullwidth {
        max-height: 50vh;
        object-position: 75% top;
    }
}

/* Allgemeine Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 1rem;
    }
    
    .page-container {
        padding: 1rem;
    }
}

/* Weitere kleine Anpassungen */
@media (max-width: 480px) {
    .subtitle {
        font-size: 1rem;
    }
    
    .audio-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}