/**
 * machenmusik2 Template - Custom Styles
 * Erweitert base.css mit template-spezifischen Styles
 */

/* =============================================================================
   Alegreya SC - Lokal gehosteter Google Font
   ============================================================================= */

@font-face {
    font-family: 'Alegreya SC';
    src: url('../fonts/alegreya-sc-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya SC';
    src: url('../fonts/alegreya-sc-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Alegreya SC';
    src: url('../fonts/alegreya-sc-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* =============================================================================
   Headlines - Alegreya SC
   ============================================================================= */

h1, h2, h3, h4 {
    font-family: 'Alegreya SC', Georgia, serif !important;
}

/* =============================================================================
   Site-Title (Logo oben) - Alegreya SC
   Zielt auf das erste div im Logo-Link, ohne Markup-Änderung.
   ============================================================================= */

header nav a.group > div:first-child {
    font-family: 'Alegreya SC', Georgia, serif;
}

/* =============================================================================
   Mobile Navigation - Modern-spezifische Anpassungen
   ============================================================================= */

.nav-menu {
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.nav-menu > li {
    border-bottom: 1px solid #f3f4f6;
}

.nav-menu > li:last-child {
    border-bottom: none;
}

.nav-menu > li > a {
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: #1f2937;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:active {
    background: #f9fafb;
    padding-left: 1.75rem;
}

/* Aktiver Link - Modern */
.nav-menu > li > a.bg-primary-50 {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.1);
    color: inherit;
}

.nav-menu > li > a.text-primary-600 {
    color: inherit;
}

/* Submenü - Modern */
.nav-menu .group ul {
    background: #f9fafb;
}

.nav-menu .group ul li {
    border-bottom: 1px solid #e5e7eb;
}

.nav-menu .group ul li:last-child {
    border-bottom: none;
}

.nav-menu .group ul li a {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.nav-menu .group ul li a:hover,
.nav-menu .group ul li a:active {
    background: #f3f4f6;
}

/* =============================================================================
   Kontaktformular - Modern-spezifisches Select Styling
   ============================================================================= */

.contact-form select {
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5rem !important;
    height: auto !important;
    min-height: 3rem !important;
}

.contact-form select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}

/* =============================================================================
   Links - Modern Template Styling
   ============================================================================= */

.prose a,
div[class*="prose"] a,
p a,
li a,
td a,
.text-content a {
    color: var(--primary-600);
}

.prose a:hover,
div[class*="prose"] a:hover,
p a:hover,
li a:hover,
td a:hover,
.text-content a:hover {
    color: var(--primary-700);
}
