/************************************************************************************************
 * OSWALD - Google Font
 * ------------------------------------------------------------------
 * Charakter:       Markant, kompakt, kräftig und vertikal betont.
 * Besonderheit:    Eine moderne Neuinterpretation des klassischen "Alternate Gothic"-Stils.
 * Designer:        Vernon Adams.
 * Verwendung:      Überschriften
 * Lizenz:          Open Font License (OFL)
/************************************************************************************************/

/* oswald-200 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200;
  src: url('/assets/fonts/oswald-v57-latin_latin-ext-200.woff2') format('woff2');
}

/* oswald-300 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/fonts/oswald-v57-latin_latin-ext-300.woff2') format('woff2');
}

/* oswald-regular - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/oswald-v57-latin_latin-ext-regular.woff2') format('woff2');
}

/* oswald-500 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/fonts/oswald-v57-latin_latin-ext-500.woff2') format('woff2');
}

/* oswald-600 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/oswald-v57-latin_latin-ext-600.woff2') format('woff2');
}

/* oswald-700 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/oswald-v57-latin_latin-ext-700.woff2') format('woff2');
}




/************************************************************************************************
 * BAI JAMJUREE - Google Font
 * ------------------------------------------------------------------
 * Charakter:       Modern, geometrisch, mechanisch und strukturiert.
 * Besonderheit:    Inspiriert von thailändischen Straßenschildern; 
 *                  einzigartige Mischung aus Rundungen und harten Kanten.
 * Designer:        Cadson Demak.
 * Verwendung:      Fließtext. Grundschriftart im body
 * Lizenz:          Open Font License (OFL)
/************************************************************************************************/

/* bai-jamjuree-200 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 200;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-200.woff2') format('woff2');
}

/* bai-jamjuree-200italic - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: italic;
  font-weight: 200;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-200italic.woff2') format('woff2');
}

/* bai-jamjuree-300 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-300.woff2') format('woff2');
}

/* bai-jamjuree-300italic - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: italic;
  font-weight: 300;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-300italic.woff2') format('woff2');
}

/* bai-jamjuree-regular - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-regular.woff2') format('woff2');
}

/* bai-jamjuree-italic - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: italic;
  font-weight: 400;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-italic.woff2') format('woff2');
}

/* bai-jamjuree-500 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-500.woff2') format('woff2');
}

/* bai-jamjuree-500italic - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: italic;
  font-weight: 500;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-500italic.woff2') format('woff2');
}

/* bai-jamjuree-600 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-600.woff2') format('woff2');
}

/* bai-jamjuree-600italic - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: italic;
  font-weight: 600;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-600italic.woff2') format('woff2');
}

/* bai-jamjuree-700 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-700.woff2') format('woff2');
}

/* bai-jamjuree-700italic - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Bai Jamjuree';
  font-style: italic;
  font-weight: 700;
  src: url('/assets/fonts/bai-jamjuree-v13-latin_latin-ext-700italic.woff2') format('woff2');
}





/************************************************************************************************
 * KALAM - Google Font
 * ------------------------------------------------------------------
 * Charakter:       Handschriftlich, informell, warm und freundlich.
 * Besonderheit:    Optimiert für Bildschirme (sehr gute Lesbarkeit).
 * Designer:        Lipi Raval (ITF - Indian Type Foundry).
 * Verwendung:      Zitate
 * Lizenz:          Open Font License (OFL)
/************************************************************************************************/

/* kalam-300 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/fonts/kalam-v18-latin_latin-ext-300.woff2') format('woff2');
}

/* kalam-regular - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/kalam-v18-latin_latin-ext-regular.woff2') format('woff2');
}

/* kalam-700 - latin_latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/kalam-v18-latin_latin-ext-700.woff2') format('woff2');
}


:root {
    --col-cr-section: #484f55;
    --col-cr-body: #394045;
    --col-cr-menu: #424242;
    --col-cr-orange: #ef723d;

    /* --- BRAND CATEGORY COLORS --- */
    --col-cr-holiday: #c33f1b;              /* Edles Ziegelrot */
    --col-cr-target: #497c9f;               /* Klares Pazifik-Blau für Reiseziele */
    --col-cr-tour: #dfa12a;                 /* Warmes Senfgelb für Touren */
    --col-cr-camper: #908088;               /* Edles Mokka-Grau für Camper-Beiträge */

    /* --- MEDIA COMPONENT METALLIC COLORS --- */
    --col-cr-image: #102B4A;               /* Tiefes Metallic-Blau */
    --col-cr-video: #4A1019;               /* Tiefes Metallic-Rot */
    --col-cr-gallery: #12402C;             /* Tiefes Metallic-Grün */

    --cr-image-metallic: linear-gradient(135deg, var(--col-cr-image) 0%, var(--col-cr-image) 40%, #2D4460 50%, #2D4460 60%, var(--col-cr-image) 70%, var(--col-cr-image) 100%);
    --cr-video-metallic: linear-gradient(135deg, var(--col-cr-video) 0%, var(--col-cr-video) 40%, #602D35 50%, #602D35 60%, var(--col-cr-video) 70%, var(--col-cr-video) 100%);
    --cr-gallery-metallic: linear-gradient(135deg, var(--col-cr-gallery) 0%, var(--col-cr-gallery) 40%, #2E5745 50%, #2E5745 60%, var(--col-cr-gallery) 70%, var(--col-cr-gallery) 100%);

    --col-cr-zitattext: #908088;
    --col-cr-insite: #fafafa;

    --col-text: #222222;
    --col-a: #497c9f;
    --col-blue: #005073;
    --col-red: #d83713;
    --col-red2: #c33f1b;
    --col-grey: #a0a0a0;
    --col-blau1: #b8e6f7;
    --col-blau2: #5fb3d0;
    --col-dis: #cdccc9;
    --col-lbl: #969696;
    --col-btn-bgr: #005073;
    --col-btn-txt: #ffffff;
    --col-btn-hov: #861623;
    --col-bgr: #fefcf5;
    --col-li: #fefcf5;
    --col-opt: #3f94a5;
    --width: 1400px;
    --font-main: 'Bai Jamjuree', sans-serif;
    --font-header: 'Oswald', sans-serif;
    --font-zitat: 'Kalam', cursive;

    --size-ebene1: 3rem;
    --size-ebene2: 1.75rem;
    --size-ebene3: 1.25rem;
    --size-body: 1rem;
    --lh-headings: 1.2;
    --lh-body: 1.4;

    /* --- ZITAT-KACHEL / QUOTE CARD --- */
    --cr-bg-quote-card-start: #fff8e1;
    --cr-bg-quote-card-end: #ffcc80;
    --cr-quote-bg: linear-gradient(to bottom right, var(--cr-bg-quote-card-start), var(--cr-bg-quote-card-end));
    --cr-quote-color: #5d4037;
    --cr-quote-radius: 12px;
    --cr-brand-orange: #ef723d;
    --cr-text-slate: #475569;

    /* --- KALENDER --- */
    --cr-calendar-border: #dddddd;
    --cr-calendar-bg: #f5f5f5;
    --cr-calendar-active-bg: #7ec8e3;
    --cr-calendar-active-text: #ffffff;
    --cr-calendar-radius: 3px;
    --cr-calendar-orange1: var(--col-cr-orange);   /* aktuelles Ziel, weiße Schrift */
    --cr-calendar-orange2: #f9d9c5;         /* andere Ziele im Wechsel mit orange3 */
    --cr-calendar-orange3: #fdeadf;
    --cr-calendar-ziel-text: #8a3a15;       /* Schrift auf orange2/3: dunkles Orange-Braun */

    /* --- ADMIN --- */
    --cr-admin-header-bg: #394045;
    --cr-admin-header-border: #484f55;
    --cr-admin-btn-bg: #1e293b;
    --cr-admin-btn-border: #334155;
    --cr-admin-btn-text: #cbd5e1;
    --cr-admin-save-bg: #ef723d;
    --cr-admin-section-bg: #f8fafc;
    --cr-admin-section-text: #1e293b;

    /* --- BASIS-FARBEN --- */
    --cr-text-white: #ffffff;

    /* --- LOGIN / FEEDBACK --- */
    --cr-bg-error: #fef2f2;
    --cr-border-error: #fecaca;
    --cr-text-error: #991b1b;
}

/* ================================================================= */
/* 👑 GLOBALER UNZERSTÖRBARER ADMIN-HEADER-FIX (FOR EDITOR & OVERVIEW) */
/* ================================================================= */

/* 1. Der alleroberste weiße Utility-Balken wird fest oben fixiert */
.admin-top-utility-bar,
body > div:first-of-type:not(#postEditorWrapper):not(#mainAdminWrapper):not(#cr-login-card) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 40px !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    z-index: 2010 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

/* 2. Das dunkle Haupt-Navigationsband dockt bombenfest direkt darunter an */
.cr-admin-sticky-header,
nav.fixed,
header .admin-nav-main-band {
    position: fixed !important;
    top: 40px !important; /* Startet exakt unter der weißen Leiste */
    left: 0 !important;
    width: 100% !important;
    background-color: #1e293b !important; /* Einheitliches Admin-Dunkelanthrazit */
    z-index: 2000 !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

/* 3. Inhalts-Zentrierung im Inneren auf maximale Breite für echten WYSIWYG-Look */
.cr-admin-sticky-header .max-w-\[1600px\],
nav.fixed .mx-auto {
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* 4. EINHEITLICHE BUTTON-GRÖSSE: Gleicht die Buttons auf edit.php an den post_editor an */
.cr-admin-sticky-header a, 
.cr-admin-sticky-header button,
nav.fixed a,
nav.fixed button {
    font-size: 11px !important;
    padding-top: 0.375rem !important;  /* py-1.5 */
    padding-bottom: 0.375rem !important;
    padding-left: 0.75rem !important;   /* px-3 */
    padding-right: 0.75rem !important;
    border-radius: 0.5rem !important;    /* rounded-lg */
}

/* 1. Globale Admin-Seiten (wie edit.php) behalten ihre vollen 140px Abstand nach oben */
#mainAdminWrapper, .admin-page-content-container {
    margin-top: 140px !important;
}

/* 2. Der Post-Editor bekommt seinen perfekt sitzenden Abstand, um stramm unter dem Header zu sitzen */
#postEditorWrapper {
    margin-top: -85px !important;
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.admin-page-content-container > #postEditorWrapper {
    margin-top: 0 !important;
}

#mainAdminWrapper {
    margin-top: 1rem !important;
}

/* --- CAMPERRÄDLE BRANDING: ABSCHNITT LÖSCHEN IN MARKEN-ORANGE --- */
button.text-red-400,
.cr-delete-section-btn {
    color: var(--col-cr-orange, var(--cr-brand-orange)) !important;
    transition: color 0.2s ease, filter 0.2s ease !important;
}

button.text-red-400:hover,
    .cr-delete-section-btn:hover {
        filter: brightness(0.85) !important;
        text-decoration: underline !important;
    }

    /* 👑 KOMPONENTEN-TYP DROPDOWN – flaches Badge-Design */
    .cr-component-type-select {
        appearance: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        background: transparent !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 0.375rem !important;
        padding: 0.125rem 1.5rem 0.125rem 0.5rem !important;
        font-size: 0.6875rem !important;
        font-weight: 600 !important;
        color: #475569 !important;
        cursor: pointer !important;
        line-height: 1.2 !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' viewBox='0 0 10 10'%3e%3cpath d='M2 3.5L5 6.5L8 3.5' stroke='%2364748b' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 0.35rem center !important;
        transition: border-color 0.15s ease, background-color 0.15s ease !important;
    }
    .cr-component-type-select:hover {
        border-color: #94a3b8 !important;
        background-color: #f1f5f9 !important;
    }
    .cr-component-type-select:focus {
        outline: none !important;
        border-color: #f97316 !important;
    }

    /* 👑 ZITAT-STYLING – rein über CSS-Variablen (DRY-Prinzip) */
    /* 👑 1. ÄUßERER WRAPPER WIRD TRANSPARENT GESHAPET */
    .is-quote-style {
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* 👑 2. DER GELBE NOTIZZETTEL WANDERT DIREKT AUF DAS SCHREIBFELD */
    .is-quote-style .tiptap,
    .is-quote-style .ProseMirror {
        /* Hier den gelben Verlauf erzwingen, um das Standard-Weiß wegzubrennen! */
        background: var(--cr-quote-bg, linear-gradient(to bottom right, #fff9e6, #ffecb3)) !important;
        color: var(--cr-quote-color, #5d4037) !important;
        border-radius: var(--cr-quote-radius, 12px) !important;
        border: 1px solid #ffe082 !important;
        box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.06) !important;

        /* Sauberer Innenabstand für das WYSIWYG-Schreiben */
        padding: 1.25rem !important;
        outline: none !important;
    }

    /* 👑 3. SCHRIFTARTEN FÜR KIND-ELEMENTE ABSICHERN */
    .is-quote-style .tiptap p,
    .is-quote-style .tiptap h1,
    .is-quote-style .tiptap h2,
    .is-quote-style .tiptap h3,
    .is-quote-style .tiptap span {
        font-family: var(--font-zitat, 'Kalam', cursive) !important;
        color: var(--cr-quote-color, #5d4037) !important;
        font-weight: 400 !important;
    }

    /* 👑 4. PROPORTIONALE SCHRIFTGRÖßEN */
    .is-quote-style .tiptap p {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    .is-quote-style .tiptap h3 {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
