/* ==========================================================================
   Fregestein Verlag – YOOtheme Pro Child-Theme
   Wird von YOOtheme automatisch geladen (templates/yootheme_fregestein/css/custom.css)
   ========================================================================== */

/* Schriften lokal (DSGVO) ------------------------------------------------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(../fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 300 900; font-display: swap; src: url(../fonts/inter-italic.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/fraunces-italic.woff2) format('woff2'); }

/* Farben & Maße ------------------------------------------------------------ */
:root {
    --fs-bg: #ece7d1;           /* Seitenhintergrund (Creme) */
    --fs-card: #faf9f4;         /* Kartenflächen */
    --fs-text: #2d4c63;         /* Fließtext (Blaugrau) */
    --fs-brown: #462300;        /* Hauptnavigation, Erntekalender */
    --fs-navy: #344b61;         /* Band unter dem Header, Footer */
    --fs-red: #b52d25;          /* Buttons */
    --fs-red-strong: #c51718;   /* aktiver Titel im Erntekalender */
    --fs-wine: #a34863;         /* Buchtitel */
    --fs-gold: #e5c666;         /* Footer-Links */
    --fs-sand: #f2e2d1;         /* Footer-Claim */
    --fs-harvest: #a78566;      /* Erntekalender-Linie */
    --fs-line: #768387;

    /* Akzent des aktuellen Bereichs (wird unten je Bereich überschrieben) */
    --fs-accent: #2d4c63;
    --fs-accent-soft: #9098a7;
    --fs-zier: url(../images/zier-buecher.svg);

    --fs-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fs-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --fs-radius: 6px;
    --fs-container: 1080px;
}

/* Bereichsfarben – gesteuert über die Klasse der ersten Section im Layout */
body:has(.fs-page-buecher)  { --fs-accent: #1179bf; --fs-accent-soft: #69a5c6; --fs-zier: url(../images/zier-buecher.svg); }
body:has(.fs-page-verlag)   { --fs-accent: #a11713; --fs-accent-soft: #bf6a5f; --fs-zier: url(../images/zier-verlag.svg); }
body:has(.fs-page-handel)   { --fs-accent: #e56f38; --fs-accent-soft: #e89f75; --fs-zier: url(../images/zier-handel.svg); }
body:has(.fs-page-lesungen) { --fs-accent: #49a0ae; --fs-accent-soft: #8abcbc; --fs-zier: url(../images/zier-lesungen.svg); }
body:has(.fs-page-kontakt)  { --fs-accent: #38aa34; --fs-accent-soft: #80c273; --fs-zier: url(../images/zier-kontakt.svg); }

/* Grundtypografie ------------------------------------------------------------ */
html {
    font-family: var(--fs-font);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--fs-text);
    background: var(--fs-bg);
}
body, .tm-page { background: var(--fs-bg); }

h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6,
.uk-heading-small, .uk-heading-medium {
    font-family: var(--fs-font);
    color: var(--fs-text);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
h2, .uk-h2 { font-size: 1.6rem; line-height: 1.3; }
h3, .uk-h3 { font-size: 1.25rem; }

a, .uk-link { color: var(--fs-text); }
a:hover, .uk-link:hover { color: var(--fs-accent); }
strong, b { font-weight: 600; }

/* Container-Breite wie im Entwurf (1080 px Inhalt) */
.uk-container:where(:not(.uk-container-expand, .uk-container-xsmall, .uk-container-small)) { max-width: var(--fs-container); }

/* Sections ohne eigene Farbe: Creme */
.uk-section-default, .uk-section-muted { background: var(--fs-bg); }

/* Header ------------------------------------------------------------------- */
.tm-header, .tm-header-mobile,
.tm-header .uk-navbar-container:not(.uk-navbar-transparent),
.tm-header-mobile .uk-navbar-container:not(.uk-navbar-transparent) { background: var(--fs-bg); }

.tm-header .uk-navbar-nav { gap: 64px; }
.tm-header .uk-navbar-nav > li > a {
    font-family: var(--fs-font);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--fs-brown);
    min-height: 76px;
    padding: 0;
}
.tm-header .uk-navbar-nav > li:hover > a,
.tm-header .uk-navbar-nav > li > a[aria-expanded="true"] { color: var(--fs-accent-soft); }
.tm-header .uk-navbar-nav > li.uk-active > a { color: var(--fs-accent); }
.tm-header .uk-logo img, .tm-header-mobile .uk-logo img { height: 27px; width: auto; }
.uk-navbar-toggle { color: var(--fs-text); }

/* Band + Unternavigation auf Unterseiten (Section-Klasse "fs-page …") ----- */
.fs-page.uk-section { padding: 0; }
.fs-band { height: 30px; background: var(--fs-navy); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.fs-subnav-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 14px;
}
.fs-subnav { display: flex; gap: 20px; flex-wrap: wrap; }
.fs-subnav a {
    display: inline-block;
    min-width: 100px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--fs-accent-soft);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    text-decoration: none;
}
.fs-subnav a:hover { color: var(--fs-accent); text-decoration: none; }
.fs-subnav a.uk-active { border-bottom-color: var(--fs-accent-soft); }
.fs-subnav-ornament {
    width: 104px;
    height: 28px;
    margin-bottom: -3px;
    background: var(--fs-zier) no-repeat right bottom / contain;
}

/* Karten --------------------------------------------------------------------
   Section-Klasse "fs-card": der Container wird zur hellen Karte. */
.fs-card.uk-section { padding-top: 60px; padding-bottom: 60px; }
.fs-card > .uk-container,
.fs-card > div > .uk-container {
    background: var(--fs-card);
    box-sizing: border-box;
    max-width: var(--fs-container);
    padding: 45px 45px 50px;
}
@media (max-width: 959px) {
    .fs-card > .uk-container, .fs-card > div > .uk-container { margin: 0 15px; padding: 30px 22px; }
}

/* Überschriften in Bereichsfarbe (DER VERLAG, KONTAKT …) */
.fs-kicker, .fs-card h3, .fs-card .uk-h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--fs-accent);
    margin: 0 0 6px;
}
.fs-card * + h3, .fs-card * + .fs-kicker { margin-top: 26px; }
.fs-card p { margin: 0 0 10px; }

/* Buttons ------------------------------------------------------------------- */
.uk-button-primary, .fs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 225px;
    height: 38px;
    padding: 0 24px;
    border: 0;
    box-sizing: border-box;
    border-radius: var(--fs-radius);
    background: var(--fs-red);
    color: #fff;
    font-family: var(--fs-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 38px;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    transition: background-color .15s;
}
.uk-button-primary:hover, .uk-button-primary:focus,
.fs-button:hover, .fs-button:focus { background: #93231d; color: #fff; text-decoration: none; }

/* Illustrationen rechts unten in den Karten */
.fs-illustration { flex: 1 1 auto; width: 100%; text-align: right; }
.fs-illustration img { display: inline-block; width: 100%; max-width: 440px; height: auto; }

/* ==========================================================================
   Startseite: Slider + Erntekalender
   ========================================================================== */
.fs-page-home.uk-section { padding: 60px 0 80px; }

.fs-hero { position: relative; }
.fs-hero-card { background: var(--fs-card); position: relative; }
.fs-hero .uk-slider-container { overflow: hidden; }

.fs-slide {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 292px 1fr;
    column-gap: 30px;
    padding: 55px 60px 56px 68px;
    box-sizing: border-box;
    min-height: 525px;
}
.fs-slide-teaser { font-size: 18px; line-height: 1.5; font-weight: 300; margin: 0; hyphens: auto; -webkit-hyphens: auto; }
.fs-slide-cover { align-self: start; display: flex; justify-content: center; }
.fs-slide-cover img { width: auto !important; height: 412px !important; max-width: 100%; object-fit: contain; }
.fs-slide-cover img, .fs-cover img, img.fs-cover {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: -8px 16px 24px rgba(70, 35, 0, .28), 0 2px 4px rgba(70, 35, 0, .12);
}
.fs-slide-voice {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: 18px;
}
.fs-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #d8dde2, 0 4px 10px rgba(45, 76, 99, .18);
}
.fs-slide-voice .fs-portrait { margin-left: -18px; }
.fs-slide-voice hr {
    width: 260px;
    max-width: 100%;
    height: 1px;
    border: 0;
    margin: 26px 0 22px;
    background: linear-gradient(90deg, #b8bec6 0%, #b8bec6 60%, rgba(184, 190, 198, 0) 100%);
}
.fs-slide-quote { font-size: 18px; line-height: 1.5; font-style: italic; font-weight: 300; margin: 0; }
.fs-slide-source { font-size: 15px; font-weight: 300; text-transform: uppercase; margin-top: 12px; }
.fs-slide-source span { text-transform: none; }
.fs-badge { position: absolute; top: 26px; right: 38px; width: 150px; transform: rotate(4deg); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .12)); }

.fs-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    background: url(../images/pfeil.svg) no-repeat center / contain;
    transition: opacity .15s, transform .15s;
}
.fs-hero-arrow:hover { opacity: .6; }
.fs-hero-prev { transform: scaleX(-1); }
.fs-hero-prev { left: 22px; }
.fs-hero-next { right: 22px; }

/* Erntekalender – läuft über die volle Fensterbreite */
.fs-harvest {
    margin: 70px calc(50% - 50vw) 0;
    text-align: center;
    overflow: hidden;
}
.fs-harvest-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fs-harvest);
    margin-bottom: 18px;
}
.fs-harvest-rail { position: relative; }
.fs-harvest-rail::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    border-top: 1px dashed var(--fs-harvest);
}
.fs-harvest-track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform .6s cubic-bezier(.25, .8, .25, 1);
    will-change: transform;
}
.fs-harvest-track > li { flex: 0 0 180px; }
.fs-harvest-track a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--fs-brown);
    text-decoration: none;
    line-height: 1.3;
}
.fs-harvest-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--fs-bg) url(../images/erntekalender-punkt.svg) no-repeat center / contain;
    margin-bottom: 8px;
}
.fs-harvest-date { font-family: var(--fs-serif); font-style: italic; font-weight: 600; font-size: 13px; }
.fs-harvest-title { font-size: 11px; font-weight: 400; margin-top: 4px; }
.fs-harvest-track > .uk-active .fs-harvest-title { font-size: 13px; font-weight: 900; color: var(--fs-red-strong); }
.fs-harvest-track a:hover .fs-harvest-title { color: var(--fs-red-strong); }

@media (max-width: 959px) {
    .fs-slide { grid-template-columns: 1fr 1fr; row-gap: 30px; padding: 40px 50px; min-height: 0; }
    .fs-slide-teaser { grid-column: 1 / -1; order: 2; font-size: 16px; }
    .fs-slide-cover { order: 1; }
    .fs-slide-voice { order: 1; }
    .fs-badge { width: 110px; top: 16px; right: 16px; }
    .fs-hero-prev { left: 8px; } .fs-hero-next { right: 8px; }
}
@media (max-width: 639px) {
    .fs-slide { grid-template-columns: 1fr; padding: 34px 42px; }
    .fs-slide-cover { max-width: 230px; justify-self: center; }
    .fs-slide-voice { padding-left: 0; }
    .fs-slide-voice .fs-portrait { margin-left: 0; width: 90px; height: 90px; }
    .fs-slide-quote { font-size: 16px; }
    .fs-harvest-track > li { flex-basis: 140px; }
}

/* ==========================================================================
   Buchseite
   ========================================================================== */
.fs-card.fs-book.uk-section { padding-top: 40px; padding-bottom: 0; }
.fs-card.fs-book > .uk-container, .fs-card.fs-book > div > .uk-container { padding: 32px 45px; }
.fs-book .fs-cover { max-width: 273px; margin: 0 auto; }

.fs-book-info { max-width: 262px; padding-top: 18px; }
.fs-book-author { font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
.fs-book-title {
    font-family: var(--fs-serif);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.15;
    color: var(--fs-wine);
    margin: 6px 0 4px;
    white-space: nowrap;
}
.fs-book-genre { font-size: 12px; }
.fs-book-meta {
    font-size: 12px;
    font-style: italic;
    line-height: 1.9;
    margin-top: 20px;
    padding-bottom: 6px;
    background: linear-gradient(90deg, #c7ccd2, rgba(199, 204, 210, 0)) no-repeat left bottom / 100% 1px;
}
.fs-prices { display: flex; gap: 16px; margin: 18px 0 16px; }
.fs-price {
    width: 124px;
    box-sizing: border-box;
    padding: 6px 10px 4px;
    border: 1px solid #9098a7;
    border-radius: var(--fs-radius);
    background: #fff;
}
.fs-price-label { font-size: 12px; font-weight: 400; padding-bottom: 3px; border-bottom: 1px solid #c7ccd2; }
.fs-price-value { font-family: var(--fs-serif); font-size: 25px; font-weight: 400; line-height: 1.35; margin-top: 3px; }
.fs-price-note { font-size: 12px; line-height: 1.2; }
.fs-book-info .fs-button { width: 100%; min-width: 0; }
.fs-book-links { margin-top: 24px; font-size: 15px; }
.fs-book-links a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.fs-book-links .fs-link-icon { width: auto; height: 16px; }
.fs-book-links-top { text-align: right; padding: 0 5px 10px; border-bottom: 1px solid #c7ccd2; }
.fs-book-links-bottom { display: flex; justify-content: space-between; padding: 10px 0 0 5px; }

/* Reiter Buchdetails / Autor*innen / Stimmen */
.fs-book-tabs.uk-section { padding: 45px 0 60px; }
.fs-book-tabs .uk-container > .uk-grid, .fs-book-tabs .uk-container > div { padding-left: 45px; }
.fs-tabs .uk-subnav, .fs-tabs .uk-tab {
    margin: 0 0 18px -45px;
    padding-left: 45px;
    gap: 0;
}
.fs-tabs .uk-subnav::before, .fs-tabs .uk-tab::before { display: none; }
.fs-tabs .uk-subnav > *, .fs-tabs .uk-tab > * { padding-left: 45px; }
.fs-tabs .uk-subnav > *:first-child, .fs-tabs .uk-tab > *:first-child { padding-left: 0; }
.fs-tabs .uk-subnav > * > a, .fs-tabs .uk-tab > * > a {
    display: inline-block;
    padding: 0 0 4px;
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--fs-text);
    background: linear-gradient(90deg, #c7ccd2, rgba(199, 204, 210, 0)) no-repeat left bottom / 0 1px;
    transition: background-size .2s;
}
.fs-tabs .uk-subnav > .uk-active > a, .fs-tabs .uk-tab > .uk-active > a,
.fs-tabs .uk-subnav > * > a:hover, .fs-tabs .uk-tab > * > a:hover {
    color: var(--fs-text);
    background-color: transparent;
    background-size: calc(100% + 16px) 1px;
}
.fs-tab-content { max-width: 720px; font-size: 14px; line-height: 1.75; }
.fs-tab-content h2 { font-size: 24px; margin: 0 0 22px; }
.fs-tab-content p { margin: 0 0 4px; }
.fs-tab-content .fs-facts { margin-bottom: 18px; }
.fs-tab-content .fs-facts p { margin: 0; }
.fs-video { position: relative; display: block; width: 308px; max-width: 100%; margin-top: 18px; }
.fs-video img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fs-video-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; aspect-ratio: 16 / 9; background: #efc3dc; color: #e5007d; font-weight: 600; }
.fs-video-play {
    position: absolute; left: 50%; top: 50%;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border-radius: 50%; background: var(--fs-navy);
}
.fs-video-placeholder .fs-video-play { position: static; margin: 10px 0 0; }
.fs-video-play::after {
    content: ""; position: absolute; left: 13px; top: 10px;
    border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #d9dee3;
}
.fs-video-placeholder .fs-video-play { position: relative; left: auto; top: auto; margin: 12px 0 0; }

.fs-author { display: grid; grid-template-columns: 120px 1fr 160px; column-gap: 30px; margin-left: -25px; }
.fs-author h2 { margin: 6px 0 8px; }
.fs-author p { margin: 0; }
.fs-author .fs-badge { position: static; width: 150px; margin-top: 10px; }

.fs-voice { margin-bottom: 26px; }
.fs-voice-quote { font-style: italic; margin: 0; }
.fs-voice-source { text-transform: uppercase; margin-top: 8px; }
.fs-voice-source span { text-transform: none; }

@media (max-width: 959px) {
    .fs-book-info { max-width: none; }
    .fs-book-title { white-space: normal; }
    .fs-book-tabs .uk-container > .uk-grid, .fs-book-tabs .uk-container > div { padding-left: 0; }
    .fs-tabs .uk-subnav, .fs-tabs .uk-tab { margin-left: 0; padding-left: 0; }
    .fs-tabs .uk-subnav > *, .fs-tabs .uk-tab > * { padding-left: 24px; }
    .fs-author { grid-template-columns: 90px 1fr; margin-left: 0; }
    .fs-author .fs-portrait { width: 90px; height: 90px; }
    .fs-author .fs-badge { grid-column: 2; width: 120px; }
}

/* ==========================================================================
   Lesungen
   ========================================================================== */
.fs-readings { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; font-weight: 400; line-height: 1.35; }
.fs-readings td { padding: 16px 14px; vertical-align: middle; border-bottom: 1px solid var(--fs-accent-soft); }
.fs-readings tr:last-child td { border-bottom: 0; }
.fs-readings td:first-child { text-align: right; padding-left: 20px; white-space: nowrap; }
.fs-readings td:nth-child(2), .fs-readings td:nth-child(3) { white-space: nowrap; }
@media (max-width: 959px) {
    .fs-readings, .fs-readings tbody, .fs-readings tr, .fs-readings td { display: block; }
    .fs-readings tr { padding: 14px 16px; border-bottom: 1px solid var(--fs-accent-soft); }
    .fs-readings td { padding: 0; border: 0; text-align: left !important; white-space: normal !important; }
    .fs-readings td:first-child { padding-left: 0; }
    .fs-readings td:nth-child(1), .fs-readings td:nth-child(2) { display: inline; font-weight: 600; }
    .fs-readings td:nth-child(2)::before { content: " · "; }
}

/* ==========================================================================
   Kontakt / Rechtliches
   ========================================================================== */
.fs-legal-nav { list-style: none; margin: 0; padding: 0; }
.fs-legal-nav li + li { margin-top: 14px; }
.fs-legal-nav a { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--fs-accent-soft); text-decoration: none; }
.fs-legal-nav a:hover, .fs-legal-nav .uk-active a { color: var(--fs-accent); }
.fs-box { border: 1px solid var(--fs-accent-soft); border-radius: 8px; padding: 12px 12px 6px; }

/* ==========================================================================
   Footer (Section-Klasse "fs-footer" im Footer-Builder)
   ========================================================================== */
.fs-footer.uk-section, .fs-footer { background: var(--fs-navy); color: var(--fs-gold); padding: 40px 0 20px; }
.fs-footer .uk-container.uk-container { max-width: 800px; }
.fs-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.fs-footer-logo img { width: 160px; height: auto; display: block; }
.fs-footer-ornament { flex: 0 1 230px; width: 230px; max-width: 100%; height: auto; }
.fs-footer-social { display: flex; gap: 14px; }
.fs-footer .fs-footer-social img { display: block; width: 26px; height: 26px; }
.fs-footer .fs-footer-social a:hover { opacity: .7; }
.fs-footer-cols {
    display: grid;
    grid-template-columns: 1.45fr .7fr 1.1fr 1fr;
    gap: 20px;
    margin: 40px 0 0;
    padding: 0 10px 28px;
}
.fs-footer-cols ul { list-style: none; margin: 0; padding: 0; }
.fs-footer .fs-footer-cols li, .fs-footer .fs-footer-cols a {
    font-size: 10px;
    font-weight: 600;
    line-height: 2.6;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--fs-gold);
    text-decoration: none;
}
.fs-footer .fs-footer-cols a:hover { color: #fff; }
.fs-footer-claim {
    border-top: 1px solid rgba(118, 131, 135, .8);
    margin: 0 -50px;
    padding-top: 14px;
    text-align: center;
    font-family: var(--fs-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 14px;
    color: var(--fs-sand);
}
@media (max-width: 639px) {
    .fs-footer-top { flex-wrap: wrap; justify-content: center; }
    .fs-footer-ornament { display: none; }
    .fs-footer-cols { grid-template-columns: 1fr 1fr; }
    .fs-footer-claim { margin: 0; }
}

/* ==========================================================================
   Kleinere Bildschirme – allgemeine Anpassungen
   ========================================================================== */
@media (max-width: 959px) {
    .fs-subnav-bar { padding-left: 15px; padding-right: 15px; }
    .fs-illustration { text-align: center; }
}

/* Button-Reihe (z. B. Verlag: Services / Nebensortiment) */
.fs-button-row { display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 70px; }
.fs-button-row .fs-button { min-width: 200px; }
@media (max-width: 959px) {
    .fs-slide-cover img { width: 100% !important; height: auto !important; }
}
em { color: inherit; }

/* Zierlinie (Zickzack) des Craft-Stils unter Menüpunkten entfernen */
.tm-header .uk-navbar-nav > li > a::before,
.tm-header .uk-navbar-nav > li > a::after,
.tm-header-mobile .uk-navbar-nav > li > a::before,
.tm-header-mobile .uk-navbar-nav > li > a::after,
.uk-navbar-nav > li > a::before,
.uk-navbar-nav > li > a::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* ---- Footer aus YOOtheme-Elementen (Section-Klasse "fs-footer") ---- */
.fs-footer .uk-panel.uk-text-primary,
.fs-footer .uk-panel.uk-text-primary p,
.fs-footer .uk-nav-secondary > li > a {
    font-family: var(--fs-font);
    font-size: 10px;
    font-weight: 600;
    line-height: 2.6;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--fs-gold) !important;
}
.fs-footer .uk-panel.uk-text-primary p { margin: 0; }
.fs-footer .uk-nav-secondary > li > a { padding: 0; display: block; }
.fs-footer .uk-nav-secondary > li + li { margin-top: 0; }
.fs-footer .uk-nav-secondary > li > a:hover { color: #fff !important; }
.fs-footer .uk-nav-secondary > li > a:hover,
.fs-footer .uk-nav-secondary > li > a:focus,
.fs-footer .uk-nav-secondary > li.uk-active > a { background: none !important; box-shadow: none !important; }
.fs-footer .uk-nav-secondary .uk-nav-sub { display: none; }
.fs-footer hr {
    border-top: 1px solid rgba(118, 131, 135, .8);
    margin: 28px -50px 0;
}
.fs-footer hr + .uk-panel,
.fs-footer .uk-panel.uk-text-secondary { margin-top: 14px; }
.fs-footer .uk-panel.uk-text-secondary,
.fs-footer .uk-panel.uk-text-secondary p {
    font-family: var(--fs-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 14px;
    color: var(--fs-sand) !important;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
    margin: 0;
}

/* ---- Kontaktformular (YOOtheme Essentials) ---- */
form[data-uk-ye-form] { --fs-field: var(--fs-accent-soft, #b9ce00); max-width: 540px; }
form[data-uk-ye-form] .uk-grid { --gap: 15px; margin-left: -15px; }
form[data-uk-ye-form] .uk-grid > * { padding-left: 15px; }
form[data-uk-ye-form] .uk-grid + .uk-grid,
form[data-uk-ye-form] .uk-grid-margin { margin-top: 0; }
form[data-uk-ye-form] .uk-grid > * > .uk-margin { margin: 0 0 10px; }

/* Beschriftungen */
form[data-uk-ye-form] .uk-form-label {
    display: block;
    font-family: var(--fs-font);
    font-size: 9.5px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: var(--fs-text);
    margin-bottom: 3px;
}
form[data-uk-ye-form] .uk-form-label > span { color: inherit; }

/* Eingabefelder */
form[data-uk-ye-form] .uk-input,
form[data-uk-ye-form] .uk-textarea {
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--fs-field);
    border-radius: var(--fs-radius);
    background: #fff;
    font-family: var(--fs-font);
    font-size: 13px;
    font-weight: 400;
    color: var(--fs-text);
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
form[data-uk-ye-form] .uk-textarea { height: 134px; padding: 10px 12px; resize: vertical; }
form[data-uk-ye-form] .uk-input::placeholder,
form[data-uk-ye-form] .uk-textarea::placeholder { color: #92a7b8; opacity: 1; }
form[data-uk-ye-form] .uk-input:focus,
form[data-uk-ye-form] .uk-textarea:focus {
    border-color: var(--fs-accent, #a5b800);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--fs-accent) 25%, transparent);
    background: #fff;
    outline: none;
}

/* Datenschutz-Einwilligung */
form[data-uk-ye-form] [data-ye-form-field="datenschutz"] { margin-top: 14px; }
form[data-uk-ye-form] [data-ye-form-field="datenschutz"] > .uk-form-label {
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: 6px;
}
form[data-uk-ye-form] [data-ye-form-field="datenschutz"] p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--fs-text);
}
form[data-uk-ye-form] .uk-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1px solid var(--fs-text);
    border-radius: 5px;
    background-color: #fff;
}
form[data-uk-ye-form] .uk-checkbox:checked {
    background-color: #fff;
    border-color: var(--fs-text);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpolyline fill='none' stroke='%232d4c63' stroke-width='1.6' points='1.5 5.5 5 9 12.5 1.5'/%3E%3C/svg%3E");
    background-size: 12px auto;
    background-repeat: no-repeat;
    background-position: center;
}
form[data-uk-ye-form] .uk-margin-small-left { margin-left: 10px !important; }

/* Link zur Datenschutzerklärung */
form[data-uk-ye-form] a.uk-link-text {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--fs-text);
    text-decoration: none;
    border-bottom: 1px solid var(--fs-text);
    padding-bottom: 1px;
    margin-top: 2px;
}
form[data-uk-ye-form] a.uk-link-text:hover { color: var(--fs-accent); border-color: var(--fs-accent); }

/* Senden-Button rechts */
form[data-uk-ye-form] button[type="submit"] { display: flex; margin: -6px 0 0 auto; }
form[data-uk-ye-form] .uk-text-danger { font-size: 11px; }

/* Buchslider-Modul: Absätze aus den Textfeldern ohne Abstand */
.fs-slide-teaser > p, .fs-slide-quote > p { margin: 0; }
.fs-slide-teaser > p + p, .fs-slide-quote > p + p { margin-top: .6em; }

/* ==========================================================================
   Buchseiten-Modul (mod_fregestein_buch)
   ========================================================================== */
.uk-section:has(> .uk-container .fs-bookmod) { padding-top: 40px; padding-bottom: 60px; }
.fs-bookmod-card { background: var(--fs-card); padding: 32px 45px; }
.fs-bookmod .fs-cover { max-width: 273px; margin: 0 auto; }
.fs-bookmod-tabs { padding: 45px 0 0 45px; }
.fs-bookmod .fs-tab-content > p { margin: 0 0 4px; }
.fs-bookmod .fs-voice-quote p { margin: 0; }
.fs-bookmod .fs-author + .fs-author { margin-top: 40px; }
.fs-bookmod .fs-video { margin-top: 18px; }
@media (max-width: 959px) {
    .fs-bookmod-card { padding: 30px 22px; }
    .fs-bookmod-tabs { padding-left: 0; }
}
.fs-bookmod .fs-link-lesungen { margin-left: auto; }

/* Vormerken: Button erst nach Einwilligung aktiv */
.fs-preorder-consent:has(.fs-consent-check:not(:checked)) .fs-button,
.fs-preorder-consent.fs-is-locked .fs-button {
    opacity: .5;
    pointer-events: none;
    cursor: default;
}
.fs-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--fs-text);
    cursor: pointer;
}
.fs-consent .uk-checkbox {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1px solid var(--fs-text);
    border-radius: 4px;
    background-color: #fff;
}
.fs-consent .uk-checkbox:checked {
    background-color: #fff;
    border-color: var(--fs-text);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpolyline fill='none' stroke='%232d4c63' stroke-width='1.6' points='1.5 5.5 5 9 12.5 1.5'/%3E%3C/svg%3E");
    background-size: 11px auto;
    background-repeat: no-repeat;
    background-position: center;
}
.fs-consent .uk-checkbox:focus-visible { outline: 2px solid var(--fs-accent-soft); outline-offset: 2px; }

/* Cover: echtes Seitenverhältnis statt des Formats aus den width/height-Attributen
   (der YOOtheme-Stil setzt sonst für alle Cover 292×412 – schmalere bekamen seitlich Rand) */
.fs-slide-cover img, .fs-cover img { aspect-ratio: auto !important; object-fit: fill !important; }
