/* ============================================
   SchildDoku WordPress Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --primary: #0f766e;
    --primary-dark: #0d5c56;
    --primary-light: #14b8a6;
    --primary-pale: #ccfbf1;

    --accent: #6366f1;
    --accent-light: #e0e7ff;

    --surface: #f8fafc;
    --surface-card: #ffffff;
    --surface-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);

    --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --navbar-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f766e 100%);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #14b8a6;
    --primary-dark: #0d9488;
    --primary-light: #2dd4bf;
    --primary-pale: rgba(20, 184, 166, 0.15);

    --accent: #818cf8;
    --accent-light: rgba(99, 102, 241, 0.15);

    --surface: #0f172a;
    --surface-card: #1e293b;
    --surface-hover: #334155;
    --border: #334155;
    --border-light: #1e293b;

    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.5), 0 8px 16px rgba(0,0,0,0.4);

    --navbar-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0d5c56 100%);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
}

h1 { font-size: 2.5rem; letter-spacing: -0.03em; }
h2 { font-size: 1.8rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background: var(--navbar-gradient);
    padding: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #fff;
}

.navbar-brand .custom-logo {
    height: 36px;
    width: auto;
}

.brand-icon svg,
.brand-icon-sm svg {
    display: block;
    border-radius: 8px;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-xs);
    transition: all 0.15s ease;
    text-decoration: none;
}

.nav-links li a:hover,
.nav-links li.current-menu-item a,
.nav-links li.current_page_item a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xs);
    background: transparent;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.15s ease;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    background: var(--surface);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, var(--primary-pale) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99,102,241,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.hero-text h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-screenshot {
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.hero-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-align: center;
    min-height: 300px;
    width: 100%;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    padding: 2.5rem 0;
    background: var(--surface-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 3rem;
    text-align: center;
}

.trust-item strong {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.trust-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem 1.5rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--primary-pale);
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   SPECIES SECTION
   ============================================ */
.species-section {
    padding: 5rem 0;
    background: var(--surface-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.species-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.species-card {
    padding: 2.5rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s ease;
}

.species-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.species-img {
    margin-bottom: 1.5rem;
}

.species-card h3 {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.species-de {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.species-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ============================================
   SCREENSHOTS
   ============================================ */
.screenshots-section {
    padding: 5rem 0;
}

.screenshots-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.55rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-card);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.screenshot-panel {
    display: none;
    gap: 2.5rem;
    align-items: center;
}

.screenshot-panel.active {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.screenshot-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.screenshot-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.screenshot-image {
    display: flex;
    justify-content: center;
}

.screenshot-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-height: 450px;
    width: auto;
}

.screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 2rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-align: center;
    min-height: 280px;
    width: 100%;
}

.screenshot-placeholder span {
    font-size: 0.85rem;
}

/* ============================================
   WORKFLOW
   ============================================ */
.workflow-section {
    padding: 5rem 0;
    background: var(--surface-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.workflow-step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.workflow-step h3 {
    margin-bottom: 0.5rem;
}

.workflow-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: 5rem 0;
    background: var(--navbar-gradient);
    color: #fff;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta-content .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
}

.cta-content .btn-primary:hover {
    background: var(--primary-pale);
    border-color: var(--primary-pale);
    color: var(--primary-dark);
}

/* ============================================
   PAGE HERO (Unterseiten)
   ============================================ */
.page-hero {
    padding: 3rem 0 2rem;
    background: var(--navbar-gradient);
    color: #fff;
}

.page-hero h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-hero .hero-sub {
    color: rgba(255,255,255,0.75);
    margin-bottom: 0;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
    padding: 3rem 0 5rem;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.75;
}

.entry-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-pale);
}

.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.4rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--primary-pale);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.entry-content th {
    background: var(--surface-hover);
    font-weight: 600;
}

/* --- Widerruf: Muster-Formular Box --- */
.widerruf-formular {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 1rem;
}

.widerruf-formular p {
    margin-bottom: 0.75rem;
}

.legal-intro {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* ============================================
   KONTAKTFORMULAR (Contact Form 7)
   ============================================ */
.wpcf7 {
    max-width: 600px;
}

/* CF7 fügt <br> nach Labels ein — ausblenden */
.wpcf7-form p > br {
    display: none;
}

.wpcf7-form p {
    margin-bottom: 1.25rem;
}

.wpcf7-form p > label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

/* Form-Control-Wrapper volle Breite */
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
}

/* Alle Text-Inputs, E-Mail, Select, Textarea */
.wpcf7-form .wpcf7-form-control.wpcf7-text,
.wpcf7-form .wpcf7-form-control.wpcf7-email,
.wpcf7-form .wpcf7-form-control.wpcf7-select,
.wpcf7-form .wpcf7-form-control.wpcf7-textarea {
    width: 100% !important;
    max-width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font);
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-card);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* Select braucht eigenen Pfeil */
.wpcf7-form .wpcf7-form-control.wpcf7-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Focus */
.wpcf7-form .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-pale);
}

/* Textarea */
.wpcf7-form .wpcf7-form-control.wpcf7-textarea {
    resize: vertical;
    min-height: 140px;
}

/* Acceptance Checkbox */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.5;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label a {
    color: var(--primary);
    text-decoration: underline;
}

/* Submit Button */
.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    color: #fff !important;
    background: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    width: 100%;
    -webkit-appearance: none;
}

.wpcf7-form .wpcf7-submit:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Spinner */
.wpcf7-form .wpcf7-spinner {
    margin: 1rem auto 0;
    display: block;
}

/* Validation — Fehlermeldungen */
.wpcf7-not-valid {
    border-color: var(--danger) !important;
}

.wpcf7-not-valid-tip {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 0.35rem;
    display: block;
}

/* Response Output (Erfolg/Fehler nach Absenden) */
.wpcf7-response-output {
    padding: 1rem 1.25rem !important;
    border-radius: var(--radius-sm) !important;
    margin: 1.5rem 0 0 !important;
    font-size: 0.92rem;
    border-width: 2px !important;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: rgba(34,197,94,0.08);
    border-color: var(--success) !important;
    color: #166534;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background: rgba(239,68,68,0.08);
    border-color: var(--danger) !important;
    color: #991b1b;
}

.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
    background: rgba(245,158,11,0.08);
    border-color: var(--warning) !important;
    color: #92400e;
}

/* ============================================
   FAQ
   ============================================ */
.faq-category {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-pale);
}

.faq-category:first-of-type {
    margin-top: 0;
}

.faq-list {
    margin-bottom: 2rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.faq-item:hover,
.faq-item[open] {
    border-color: var(--primary-light);
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease;
}

.faq-item summary:hover {
    background: var(--surface-hover);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.faq-answer li {
    margin-bottom: 0.3rem;
}

.pricing-faq {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding-top: 1rem;
}

.pricing-faq .section-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-faq .section-intro h2 {
    margin-bottom: 0.5rem;
}

.pricing-faq .section-intro p {
    color: var(--text-secondary);
}

/* ============================================
   HILFE-SEITE
   ============================================ */

/* Layout: Content links, TOC rechts sticky */
.help-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 3rem;
    align-items: start;
}

.help-content {
    min-width: 0;
}

/* TOC: Sticky rechts */
.help-toc {
    position: sticky;
    top: 100px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.help-toc h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.help-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-toc li {
    margin-bottom: 0.2rem;
}

.help-toc a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.6rem;
    display: block;
    border-radius: var(--radius-xs);
    border-left: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.help-toc a:hover {
    color: var(--primary);
    background: var(--surface-hover);
}

.help-toc a.active {
    color: var(--primary);
    background: var(--primary-pale);
    border-left-color: var(--primary);
    font-weight: 600;
}

/* Sektionen */
.help-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
    scroll-margin-top: 80px;
}

.help-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.help-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-pale);
}

.help-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.help-section h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.help-section ul,
.help-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.help-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Bild neben Text: Wenn ein img in der Section ist */
.help-section img {
    float: right;
    max-width: 280px;
    margin: 0 0 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.help-section::after {
    content: '';
    display: table;
    clear: both;
}

/* Highlight-Box */
.help-highlight {
    background: var(--primary-pale);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.help-highlight strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.help-highlight p {
    margin-bottom: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* Code-Block */
.code-block {
    background: #0f172a;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #22c55e;
    line-height: 1.6;
}

/* Tabelle */
.help-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

.help-table th,
.help-table td {
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.help-table th {
    background: var(--surface-hover);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

/* ============================================
   PRICING
   ============================================ */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
    align-items: start;
}

.pricing-vat {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.pricing-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.pricing-featured {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: var(--shadow-lg);
    transform: scale(1.04);
    z-index: 1;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 1.25rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.pricing-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex: 1;
}

.pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pricing-list li::before {
    content: '\2713';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-cta {
    margin-top: auto;
}

.pricing-cta .btn {
    width: 100%;
    justify-content: center;
}

.pricing-comparison {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.pricing-comparison h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.pricing-comparison > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.comparison-table thead th {
    background: var(--surface-hover);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
    text-align: center;
    width: 120px;
    color: var(--primary);
    font-weight: 600;
}

/* Service Section (Pricing page) */
.service-section {
    max-width: 900px;
    margin: 0 auto;
}

.service-section .section-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.service-section .section-intro h2 {
    margin-bottom: 0.5rem;
}

.service-section .section-intro p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-pale);
    color: var(--primary);
    margin: 0 auto 1rem;
}

.service-item h4 {
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.service-cta {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 0;
}

/* ============================================
   BLOG / POSTS
   ============================================ */
.post-card {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.post-card h2 a {
    color: var(--text);
}

.post-card h2 a:hover {
    color: var(--primary);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.read-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
}

.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.75);
    padding: 3.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

.site-footer h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-widget h4 {
    color: #fff;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    text-align: center;
}

.footer-disclaimer p {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    line-height: 1.5;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom p {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.25rem;
    }

    .species-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #0f172a;
        padding: 1rem 1.5rem 1.5rem;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid rgba(255,255,255,0.08);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links li a {
        padding: 0.75rem 0.5rem;
    }

    .nav-actions {
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.08);
        justify-content: space-between;
    }

    /* Hero */
    .hero {
        padding: 3rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    /* Trust */
    .trust-items {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Grids */
    .features-grid,
    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .species-cards {
        grid-template-columns: 1fr;
    }

    /* Screenshots */
    .screenshot-panel.active {
        grid-template-columns: 1fr;
    }

    .screenshot-info {
        text-align: center;
    }

    .screenshots-tabs {
        gap: 0.35rem;
    }

    .tab-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.82rem;
    }

    /* Help Layout */
    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-toc {
        position: static;
        max-height: none;
        order: -1;
        margin-bottom: 2rem;
    }

    .help-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .help-toc a {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .help-section img {
        float: none;
        max-width: 100%;
        margin: 0 0 1.5rem 0;
    }

    /* Pricing */
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.82rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.6rem;
    }

    /* Page */
    .page-hero {
        padding: 2rem 0 1.5rem;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.65rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 0.92rem;
    }

    .feature-card {
        padding: 1.5rem 1.25rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .help-toc {
        padding: 1.25rem;
    }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image img {
    border-radius: var(--radius-sm);
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* e-recht24 compatibility */
.ert24-consent-bar,
.ert24-overlay {
    font-family: var(--font) !important;
}
