/*
 * Theme-Custom-Styles für Isermann.
 *
 * Tailwind übernimmt das meiste — hier nur Effekte, die nicht über
 * Utility-Klassen ausgedrückt werden können (Glassmorphism, Gradient-Text,
 * Scrollbar-Styling, Print-Styles).
 */

/* Body / Typo Grundsetup */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #1A1A1A;
    background-color: #FFFFFF;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter Tight', sans-serif;
}

/* Glassmorphism-Header */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero-Overlay (für Vollbreiten-Hero mit Bild-Hintergrund) */
.hero-overlay {
    background: linear-gradient(to top,
        rgba(14, 42, 90, 0.9) 0%,
        rgba(14, 42, 90, 0.4) 50%,
        rgba(14, 42, 90, 0.1) 100%);
}

/* Dark-Glass Panel (für Floating-Cards auf dunklem Hero-Hintergrund) */
.dark-glass {
    background: rgba(14, 42, 90, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient-Text für Hero-Überschriften */
.gradient-text {
    background: linear-gradient(135deg, #0E2A5A 0%, #C9A86A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Scrollbar-Styling */
::-webkit-scrollbar         { width: 8px; }
::-webkit-scrollbar-track   { background: #f1f1f1; }
::-webkit-scrollbar-thumb   { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* FAQ-Accordion Standard-Style (wird per JS getoggelt) */
.faq-item .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-item.is-open .faq-content {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}
.faq-item .faq-toggle-icon {
    transition: transform 0.3s ease;
}
.faq-item.is-open .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Mobile-Menü-Overlay */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.is-open {
    transform: translateX(0);
}

/* Print-Styles für Impressum/Datenschutz */
@media print {
    #header, #footer, .no-print { display: none !important; }
    main { padding-top: 0 !important; }
    a { color: #000; text-decoration: underline; }
}

/* Skip-Link (Accessibility) */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 100;
    background: #0E2A5A;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* ============================================
 * Accordion (FAQ-Seite, Rechtsgebiet-Detail-FAQs)
 * ============================================ */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition: max-height 0.35s ease-out, padding-bottom 0.35s ease-out;
}
.accordion-item.active .accordion-content {
    max-height: 1500px;
    padding-bottom: 1.5rem;
    transition: max-height 0.5s ease-in, padding-bottom 0.5s ease-in;
}
.accordion-icon {
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}
.accordion-item button {
    cursor: pointer;
}

/* Auch für die FAQ-Items im Rechtsgebiet-Detail (haben separates Markup) */
.bg-white.rounded-2xl > .px-6.pb-5.hidden {
    display: none;
}
.bg-white.rounded-2xl.is-open > .px-6.pb-5.hidden {
    display: block;
}

/* Styling für Gutenberg-Editor-Inhalt (the_content()) im Frontend */
.isermann-prose {
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}
.isermann-prose > * + * {
    margin-top: 1.25em;
}
.isermann-prose h1, .isermann-prose h2 {
    color: #0E2A5A;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 0.6em;
    font-family: 'Inter Tight', sans-serif;
}
.isermann-prose h1 { font-size: 2.25rem; }
.isermann-prose h2 { font-size: 1.875rem; }
.isermann-prose h3 {
    color: #0E2A5A;
    font-weight: 700;
    font-size: 1.375rem;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
    font-family: 'Inter Tight', sans-serif;
}
.isermann-prose h4 {
    color: #0E2A5A;
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: 1.5em;
    margin-bottom: 0.4em;
}
.isermann-prose p {
    margin: 0 0 1em;
}
.isermann-prose a {
    color: #0E2A5A;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.isermann-prose a:hover {
    color: #C9A86A;
}
.isermann-prose strong { color: #0E2A5A; }
.isermann-prose ul, .isermann-prose ol {
    padding-left: 1.5em;
    margin: 0 0 1em;
}
.isermann-prose li { margin: 0.4em 0; }
.isermann-prose blockquote {
    border-left: 4px solid #C9A86A;
    padding-left: 1.25em;
    color: #0E2A5A;
    font-style: italic;
    margin: 1.5em 0;
}
.isermann-prose img {
    border-radius: 1rem;
    margin: 1.5em 0;
    max-width: 100%;
    height: auto;
}
.isermann-prose hr {
    border: 0;
    border-top: 1px solid #E2E8F0;
    margin: 2em 0;
}
.isermann-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.isermann-prose th, .isermann-prose td {
    border-bottom: 1px solid #E2E8F0;
    padding: 0.6em 0.8em;
    text-align: left;
}
.isermann-prose th { color: #0E2A5A; font-weight: 600; }
