/*
Theme Name: Urlaub in Dubai
Theme URI: https://urlaub-in-dubai.com
Author: Andrea Schmidt
Author URI: https://urlaub-in-dubai.com
Description: Modern-cleanes, helles WordPress-Theme fuer einen Dubai-Reiseblog. Grosse Startseite mit Blog als Unterbereich. Viel Weissraum, klare Typografie, auf SEO 2026 und Core Web Vitals ausgelegt.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: urlaub-in-dubai
*/

/* =========================================================
   1. Design-Tokens (CSS-Variablen)
   ========================================================= */
:root {
    --farbe-text: #1a2733;
    --farbe-text-leise: #5a6b7a;
    --farbe-hintergrund: #ffffff;
    --farbe-flaeche: #f6f9fb;
    --farbe-flaeche-2: #eef4f8;
    --farbe-akzent: #0a84c2;
    --farbe-akzent-dunkel: #086a9c;
    --farbe-gold: #c9a24b;
    --farbe-rand: #e3eaf0;

    /* Magazin-Stil (angelehnt an Urlaub Meer Strand, in Blau) */
    --farbe-balken: #1c3a52;            /* dunkler Sektions-Balken */
    --farbe-balken-flaeche: #dbe9f2;    /* heller Streifen hinter dem Balken */
    --farbe-badge: #0a84c2;             /* Kategorie-Badge, blau statt rot */
    --farbe-footer: #16243a;            /* dunkelblauer Footer wie im Original */

    --schrift-display: 'Fraunces', Georgia, serif;
    --schrift-text: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;

    --breite-max: 1180px;
    --breite-text: 760px;
    --radius: 16px;
    --radius-klein: 10px;
    --schatten: 0 12px 40px rgba(10, 39, 51, 0.08);
    --schatten-leise: 0 4px 18px rgba(10, 39, 51, 0.06);
    --abstand: clamp(3rem, 7vw, 6rem);
}

/* =========================================================
   2. Reset und Grundlagen
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--schrift-text);
    font-size: 1.075rem;
    line-height: 1.75;
    color: var(--farbe-text);
    background: var(--farbe-hintergrund);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--schrift-display);
    font-weight: 600;
    line-height: 1.18;
    color: var(--farbe-text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

p { margin: 0 0 1.3rem; }

a {
    color: var(--farbe-akzent);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--farbe-akzent-dunkel); }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--breite-max);
    margin: 0 auto;
    padding: 0 clamp(1.2rem, 4vw, 2.4rem);
}

.text-breite { max-width: var(--breite-text); margin-left: auto; margin-right: auto; }

/* =========================================================
   3. Header und Navigation
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--farbe-rand);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 1.5rem;
}

.site-branding .site-title {
    font-family: var(--schrift-display);
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0;
    color: var(--farbe-text);
}
.site-branding .site-title a { color: inherit; }
.site-branding .site-title .akzent { color: var(--farbe-akzent); }

.haupt-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.haupt-navigation a {
    color: var(--farbe-text);
    font-weight: 600;
    font-size: 0.98rem;
    position: relative;
}
.haupt-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--farbe-akzent);
    transition: width 0.25s ease;
}
.haupt-navigation a:hover::after,
.haupt-navigation .current-menu-item a::after { width: 100%; }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.5rem;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--farbe-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* =========================================================
   4. Buttons
   ========================================================= */
.btn {
    display: inline-block;
    background: var(--farbe-akzent);
    color: #fff;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-klein);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--schatten-leise);
}
.btn:hover {
    background: var(--farbe-akzent-dunkel);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--schatten);
}
.btn-leise {
    background: transparent;
    color: var(--farbe-text);
    border: 1.5px solid var(--farbe-rand);
    box-shadow: none;
}
.btn-leise:hover {
    background: var(--farbe-flaeche);
    color: var(--farbe-text);
    border-color: var(--farbe-akzent);
}

/* =========================================================
   5. Hero (Startseite)
   ========================================================= */
.hero {
    position: relative;
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    background:
        radial-gradient(1200px 500px at 80% -10%, var(--farbe-flaeche-2), transparent 60%),
        var(--farbe-hintergrund);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    font-family: var(--schrift-text);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--farbe-akzent);
    margin-bottom: 1.2rem;
}
.hero h1 { margin: 0 0 1.3rem; }
.hero-lead {
    font-size: 1.2rem;
    color: var(--farbe-text-leise);
    margin-bottom: 2rem;
    max-width: 34rem;
}
.hero-aktionen { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-bild {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schatten);
    aspect-ratio: 4 / 5;
    background: var(--farbe-flaeche-2);
}
.hero-bild img { width: 100%; height: 100%; object-fit: cover; }

.hero-anim { animation: aufblenden 0.8s ease both; }
.hero-anim:nth-child(1) { animation-delay: 0.05s; }
@keyframes aufblenden {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   6. Sektionen Startseite
   ========================================================= */
.sektion { padding: var(--abstand) 0; }
.sektion-flaeche { background: var(--farbe-flaeche); }

.sektion-kopf { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.sektion-kopf .eyebrow {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--farbe-akzent);
    display: block;
    margin-bottom: 0.8rem;
}
.sektion-kopf h2 { margin: 0 0 1rem; }
.sektion-kopf p { color: var(--farbe-text-leise); margin: 0; }

/* Vorteile / Feature-Karten */
.karten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.karte {
    background: var(--farbe-hintergrund);
    border: 1px solid var(--farbe-rand);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.karte .karte-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--farbe-flaeche-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.karte h3 { margin: 0 0 0.6rem; }
.karte p { color: var(--farbe-text-leise); margin: 0; font-size: 1rem; }

/* =========================================================
   7. Artikel-Vorschau (Blog-Teaser auf Startseite + Archiv)
   ========================================================= */
.beitrags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.beitrag-karte {
    background: var(--farbe-hintergrund);
    border: 1px solid var(--farbe-rand);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.beitrag-karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.beitrag-karte-bild {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--farbe-flaeche-2);
}
.beitrag-karte-bild img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.beitrag-karte:hover .beitrag-karte-bild img { transform: scale(1.05); }
.beitrag-karte-inhalt { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.beitrag-kat {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--farbe-akzent);
    margin-bottom: 0.7rem;
}
.beitrag-karte h3 { margin: 0 0 0.7rem; font-size: 1.3rem; }
.beitrag-karte h3 a { color: var(--farbe-text); }
.beitrag-karte h3 a:hover { color: var(--farbe-akzent); }
.beitrag-auszug { color: var(--farbe-text-leise); font-size: 0.98rem; margin: 0 0 1.2rem; }
.beitrag-meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--farbe-text-leise);
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

/* =========================================================
   8. Einzelartikel (single.php) und Seiten
   ========================================================= */
.beitrag-kopf {
    padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
    text-align: center;
}
.beitrag-kopf .beitrag-kat { display: block; margin-bottom: 1rem; }
.beitrag-kopf h1 { max-width: 40rem; margin: 0 auto 1rem; }
.beitrag-kopf .beitrag-meta { justify-content: center; }

.beitrag-titelbild {
    max-width: var(--breite-max);
    margin: 2rem auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schatten-leise);
}

.beitrag-inhalt {
    font-size: 1.12rem;
    line-height: 1.85;
}
.beitrag-inhalt h2 { margin: 2.8rem 0 1rem; }
.beitrag-inhalt h3 { margin: 2rem 0 0.8rem; }
.beitrag-inhalt img { border-radius: var(--radius-klein); margin: 2rem 0; }
.beitrag-inhalt ul, .beitrag-inhalt ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.beitrag-inhalt li { margin: 0.5rem 0; }
.beitrag-inhalt blockquote {
    border-left: 4px solid var(--farbe-akzent);
    margin: 2rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-style: italic;
    color: var(--farbe-text-leise);
}

/* =========================================================
   9. Footer
   ========================================================= */
.site-footer {
    background: var(--farbe-footer);
    color: #c2d2dd;
    padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
    margin-top: var(--abstand);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.site-footer h4 { color: #fff; margin: 0 0 1rem; font-size: 1.1rem; }
.site-footer p { color: #9fb3c0; margin: 0 0 0.8rem; font-size: 0.98rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.5rem 0; }
.site-footer a { color: #c2d2dd; }
.site-footer a:hover { color: #fff; }
.footer-marke { font-family: var(--schrift-display); font-size: 1.35rem; color: #fff; margin-bottom: 0.8rem; }
.footer-unten {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1.8rem;
    text-align: center;
    font-size: 0.88rem;
    color: #8499a6;
}

/* =========================================================
   10. Pagination
   ========================================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.8rem;
    border: 1px solid var(--farbe-rand);
    border-radius: var(--radius-klein);
    color: var(--farbe-text);
    font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--farbe-akzent);
    color: #fff;
    border-color: var(--farbe-akzent);
}

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-bild { aspect-ratio: 16 / 11; order: -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .menu-toggle { display: block; }
    .haupt-navigation {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--farbe-rand);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .haupt-navigation.offen { max-height: 400px; }
    .haupt-navigation ul { flex-direction: column; gap: 0; padding: 1rem 1.5rem; }
    .haupt-navigation li { padding: 0.7rem 0; border-bottom: 1px solid var(--farbe-flaeche); }
}

/* Zugaenglichkeit: sichtbarer Fokus */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--farbe-akzent);
    outline-offset: 2px;
}
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}

/* =========================================================
   12. Magazin-Stil (Urlaub-Meer-Strand-Look in Blau)
   ========================================================= */

/* Abgeschraegter Sektions-Header */
.magazin-header {
    position: relative;
    background: var(--farbe-balken-flaeche);
    border-radius: 6px;
    margin: 0 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: stretch;
}
.magazin-header .balken {
    position: relative;
    background: var(--farbe-balken);
    color: #fff;
    font-family: var(--schrift-display);
    font-weight: 600;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    padding: 0 2.4rem 0 1.6rem;
    border-radius: 6px 0 0 6px;
}
/* Schraege rechts am Balken */
.magazin-header .balken::after {
    content: "";
    position: absolute;
    top: 0;
    right: -26px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 56px 26px 0 0;
    border-color: var(--farbe-balken) transparent transparent transparent;
}

/* Highlight-Slider (mehrere Bilder nebeneinander) */
.highlight-streifen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 4px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 3rem;
}
.highlight-kachel {
    position: relative;
    aspect-ratio: 3 / 5;
    overflow: hidden;
    background: var(--farbe-flaeche-2);
    min-height: 360px;
}
.highlight-kachel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.highlight-kachel:hover img { transform: scale(1.05); }
/* Erste Kachel breiter mit Textoverlay */
.highlight-streifen .gross {
    grid-column: span 2;
    aspect-ratio: auto;
}
.highlight-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.4rem 1.6rem 1.6rem;
    background: linear-gradient(to top, rgba(16,36,58,0.92), rgba(16,36,58,0.0));
    color: #fff;
}
.highlight-overlay .badge { margin-bottom: 0.7rem; }
.highlight-overlay h3 { color: #fff; margin: 0 0 0.6rem; font-size: 1.5rem; }
.highlight-overlay h3 a { color: #fff; }
.highlight-overlay .meta { font-size: 0.85rem; color: #cdd9e4; }

/* Kategorie-Badge (blau statt rot) */
.badge {
    display: inline-block;
    background: var(--farbe-badge);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.32rem 0.7rem;
    border-radius: 4px;
    line-height: 1.2;
}

/* Badge auf Kachelbild oben */
.kachel-badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 2;
}

/* Intro mit Sidebar */
.intro-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}
.intro-haupt .intro-bild {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.6rem;
}
.intro-haupt h2 { margin: 0 0 1rem; }
.intro-haupt p { color: var(--farbe-text-leise); }

/* Sidebar-Karte */
.seitenleiste .sidebar-karte {
    border: 1px solid var(--farbe-rand);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.seitenleiste .sidebar-karte-bild { aspect-ratio: 16 / 10; overflow: hidden; background: var(--farbe-flaeche-2); }
.seitenleiste .sidebar-karte-bild img { width: 100%; height: 100%; object-fit: cover; }
.seitenleiste .sidebar-karte-inhalt { padding: 1.2rem 1.3rem 1.4rem; }
.seitenleiste .sidebar-karte h3 { font-size: 1.2rem; margin: 0.7rem 0 0.5rem; }
.seitenleiste .sidebar-karte h3 a { color: var(--farbe-text); }
.seitenleiste .sidebar-karte h3 a:hover { color: var(--farbe-akzent); }
.seitenleiste .sidebar-karte p { font-size: 0.95rem; color: var(--farbe-text-leise); margin: 0; }
.seitenleiste .sidebar-meta { font-size: 0.82rem; color: var(--farbe-text-leise); margin-top: 0.6rem; }

/* Untere Karten-Reihe "Neueste Reiseziele" mit Bild-Overlay */
.ziel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.ziel-karte {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--farbe-flaeche-2);
}
.ziel-karte img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ziel-karte:hover img { transform: scale(1.05); }
.ziel-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(16,36,58,0.9), rgba(16,36,58,0.1) 60%, transparent);
    color: #fff;
}
.ziel-overlay .badge { align-self: flex-start; margin-bottom: 0.6rem; }
.ziel-overlay h3 { color: #fff; font-size: 1.15rem; margin: 0 0 0.4rem; }
.ziel-overlay h3 a { color: #fff; }
.ziel-overlay .meta { font-size: 0.8rem; color: #cdd9e4; }

@media (max-width: 880px) {
    .intro-layout { grid-template-columns: 1fr; }
    .highlight-streifen .gross { grid-column: span 1; }
    .highlight-kachel { min-height: 280px; }
}
