/* DeinStern24: Kopf- und Fußbereich von GeneratePress im neuen CI, volle Breite für Seiten im neuen Layout.
   Gilt auf der ganzen Website. Farben: Nachtindigo #1E2457, tiefer #141A42, Sterngelb #FFD45E (nur Kaufknöpfe), Hell #FFFBF2. */

body{font-family:Figtree,system-ui,sans-serif}

/* ---------- Grundstile von GeneratePress im neuen Layout zurücksetzen ----------
   Der Entwurf rechnet mit den Standardwerten des Browsers. GeneratePress gibt Zitaten, Listen, Tabellen, Knöpfen und Feldern
   eigene Abstände, Rahmen und Farben. :where() hält die Gewichtung so niedrig, dass alle Regeln aus ds24-ci.css weiter gewinnen. */
:where(.ds24) blockquote,:where(.ds24) ul,:where(.ds24) ol,:where(.ds24) li,:where(.ds24) dl,:where(.ds24) dt,:where(.ds24) dd,:where(.ds24) table,:where(.ds24) caption,:where(.ds24) th,:where(.ds24) td,:where(.ds24) figure,:where(.ds24) figcaption,:where(.ds24) hr,:where(.ds24) button,:where(.ds24) label,:where(.ds24) p,:where(.ds24) h1,:where(.ds24) h2,:where(.ds24) h3,:where(.ds24) h4,:where(.ds24) h5,:where(.ds24) h6,:where(.ds24) pre,:where(.ds24) code,:where(.ds24) img,:where(.ds24) small,:where(.ds24) sup,:where(.ds24) sub,:where(.ds24) select,:where(.ds24) textarea,:where(.ds24) input,:where(.ds24) button:hover,:where(.ds24) button:focus,:where(.ds24) input[type=text],:where(.ds24) input[type=email],:where(.ds24) input[type=url],:where(.ds24) input[type=password],:where(.ds24) input[type=search],:where(.ds24) input[type=number],:where(.ds24) input[type=tel],:where(.ds24) input[type=date],:where(.ds24) input[type=month],:where(.ds24) input[type=week],:where(.ds24) input[type=time],:where(.ds24) input[type=datetime-local],:where(.ds24) input[type=color],:where(.ds24) input[type=button],:where(.ds24) input[type=submit],:where(.ds24) input[type=reset],:where(.ds24) input[type=text]:focus,:where(.ds24) input[type=email]:focus,:where(.ds24) input[type=url]:focus,:where(.ds24) input[type=password]:focus,:where(.ds24) input[type=search]:focus,:where(.ds24) input[type=number]:focus,:where(.ds24) input[type=tel]:focus,:where(.ds24) input[type=date]:focus,:where(.ds24) input[type=button]:hover,:where(.ds24) input[type=submit]:hover,:where(.ds24) input[type=reset]:hover{margin:revert;padding:revert;border:revert;background:revert;font-size:revert;font-style:revert;font-weight:revert;line-height:revert;color:revert;border-radius:revert;box-shadow:revert;max-width:revert;position:revert;text-transform:revert;letter-spacing:revert;outline:revert}

/* WordPress ersetzt Emojis durch Bilder; sie bleiben so groß wie die Schrift (die Bildregel des CI würde sie vergrößern) */
.ds24 img.emoji,.ds24 img.wp-smiley{display:inline!important;width:1em!important;height:1em!important;margin:0!important;vertical-align:-.1em;box-shadow:none;border:0}

/* ---------- Kopf ---------- */
body .site-header{background:#141A42;color:#FFFBF2}
body .site-header .inside-header{max-width:1200px;margin:0 auto;padding:0 24px;min-height:76px;display:flex;align-items:center;gap:24px}
body .site-header .main-title a,body .site-header .main-title a:hover{color:#FFFBF2;font:400 25px/1 "Young Serif",Georgia,serif}
body .site-header .site-description{color:#C9CEE6}
body .site-header .header-image{max-height:34px;width:auto}
body .main-navigation,body .main-navigation ul ul{background:transparent}
@media (min-width:769px){body .site-header #site-navigation{margin-left:auto}}
body .main-navigation .main-nav ul li a{color:#FFFBF2;font:500 16px/76px Figtree,system-ui,sans-serif;padding:0 13px;opacity:.88;background:transparent}
body .main-navigation .main-nav ul li:hover>a,body .main-navigation .main-nav ul li:focus>a,body .main-navigation .main-nav ul li.sfHover>a{color:#FFFBF2;opacity:1;background:transparent}
body .main-navigation .main-nav ul li[class*="current-menu-"]>a:not([href*="#"]){color:#FFFBF2;opacity:1;background:linear-gradient(#FFD45E,#FFD45E) no-repeat center calc(50% + 15px)/calc(100% - 26px) 2px}
body .main-navigation .main-nav ul ul{background:#1E2457;border-radius:14px;padding:8px 0;box-shadow:0 18px 40px rgba(5,8,30,.4)}
body .main-navigation .main-nav ul ul li a{line-height:1.4;padding:10px 18px;font-size:15px}
body .main-navigation .menu-bar-items,body .main-navigation .menu-toggle,body .main-navigation .menu-toggle:hover,body .main-navigation .menu-toggle:focus{color:#FFFBF2;background:transparent}
/* Menüpunkt mit der CSS-Klasse ds24-knopf (zum Beispiel „Stern aussuchen“) als gelber Kaufknopf */
body .main-navigation .main-nav ul li.ds24-knopf>a{background:#FFD45E;color:#1E2457;opacity:1;border-radius:999px;line-height:44px;padding:0 22px;margin:16px 0 16px 10px;font-weight:600}
body .main-navigation .main-nav ul li.ds24-knopf>a:hover{background:#ffe08a;color:#1E2457}
body .main-navigation .main-nav ul li.ds24-knopf[class*="current-menu-"]>a{background:#FFD45E}
body .site-header a:focus-visible,body .main-navigation .menu-toggle:focus-visible{outline:3px solid #FFD45E;outline-offset:3px;border-radius:6px}
@media (max-width:768px){
  body .site-header .inside-header{min-height:64px;flex-wrap:wrap;padding:0 16px;gap:8px}
  body .site-header .mobile-menu-control-wrapper{margin-left:auto;display:flex;align-items:center}
  body .site-header .menu-toggle{line-height:44px;padding:0 10px;display:flex;align-items:center}
  body .site-header .menu-toggle .mobile-menu{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  body .site-header #site-navigation{margin-left:0;flex-basis:100%}
  body .main-navigation .main-nav ul li a{line-height:52px}
  body .main-navigation.toggled .main-nav>ul{background:#141A42;padding:8px 0 16px}
  body .main-navigation.toggled .main-nav ul li[class*="current-menu-"]>a:not([href*="#"]){background:none;color:#FFD45E}
  body .main-navigation .main-nav ul li.ds24-knopf>a{display:inline-block;margin:10px 13px 6px}
}

/* Seiten im neuen Layout: Kopf liegt über dem dunklen Seitenanfang wie im Entwurf */
.ds24-seite .site-header{position:absolute;left:0;right:0;top:0;z-index:100;background:transparent}
.ds24-seite.ds24-kopf-fest .site-header{background:#141A42}
.admin-bar.ds24-seite .site-header{top:32px}
@media (max-width:782px){.admin-bar.ds24-seite .site-header{top:46px}}
@media (max-width:768px){.ds24-seite .site-header{background:#141A42}}

/* ---------- GeneratePress-Rahmen: volle Breite, keine Innenabstände ---------- */
.ds24-seite .site.grid-container,.ds24-seite #page{max-width:none;padding:0}
.ds24-seite .site-content{display:block;padding:0}
.ds24-seite .content-area{width:100%;float:none;margin:0}
.ds24-seite .site-main{margin:0}
.ds24-seite .inside-article{padding:0;background:none}
.ds24-seite .entry-content,.ds24-seite .entry-content:not(:first-child){margin:0}
.ds24-seite .comments-area{max-width:1200px;margin:0 auto;padding:48px 24px}
/* Gutenberg setzt Abstände zwischen Blöcken; die Abschnitte des Entwurfs bringen ihre eigenen mit */
.ds24>*,.ds24>.wp-block-group__inner-container>*{margin-block:0}
/* Klassische Themes: WordPress legt in jede Gruppe einen inneren Container, GeneratePress gibt ihm Breite und Innenabstand */
.wp-block-group.ds24>.wp-block-group__inner-container,.ds24 .wp-block-group__inner-container{max-width:none;margin:0;padding:0}
.ds24.is-layout-flow>*,.ds24.is-layout-constrained>*{margin-block-start:0;margin-block-end:0;max-width:none;margin-left:0;margin-right:0}
.entry-content>.ds24{max-width:none}

/* ---------- Fuß ---------- */
/* Standard: die vorhandenen Footer-Widgets (mit Pflichtangaben, Gewährleistungshinweis und Sprachumschalter) im CI */
body .site-footer{background:#141A42;color:#C9CEE6}
body .site-footer .footer-widgets{background:#141A42;color:#C9CEE6;font:15px/1.6 Figtree,system-ui,sans-serif}
body .site-footer .footer-widgets .inside-footer-widgets{max-width:1200px;margin:0 auto;padding:64px 24px 40px}
body .site-footer .footer-widgets .widget{background:transparent;padding:0;margin-bottom:24px}
body .site-footer .footer-widgets .widget-title,body .site-footer .footer-widgets h2,body .site-footer .footer-widgets h3,body .site-footer .footer-widgets h4{color:#FFFBF2;font:600 15px/1.4 Figtree,system-ui,sans-serif;margin:0 0 12px}
body .site-footer .footer-widgets p{margin:0 0 8px}
body .site-footer .footer-widgets p strong,body .site-footer .footer-widgets p b{color:#FFFBF2}
body .site-footer .footer-widgets a{color:#C9CEE6;text-decoration:none}
body .site-footer .footer-widgets a:hover,body .site-footer .footer-widgets a:focus{color:#FFFBF2}
/* Einfarbige Symbole (Zahlarten, Social Media) hell auf dunklem Grund; Flaggen und Bilder bleiben unverändert */
body .site-footer .footer-widgets img[src$=".svg"]:not([src*="/flags/"]),body .site-footer .footer-widgets img[data-src$=".svg"]:not([data-src*="/flags/"]){filter:brightness(0) invert(.88)}
body .site-footer .footer-widgets .wp-block-button__link,body .site-footer .footer-widgets a.button,body .site-footer .footer-widgets button{background:transparent;color:#FFFBF2;border:1px solid rgba(255,251,242,.45);border-radius:999px;padding:8px 16px;font:500 14px/1.3 Figtree,system-ui,sans-serif}
body .site-footer .footer-widgets .wp-block-button__link:hover,body .site-footer .footer-widgets a.button:hover,body .site-footer .footer-widgets button:hover{border-color:#FFFBF2;background:transparent;color:#FFFBF2}
body .site-footer .site-info{background:#141A42;color:#9AA0C3;border-top:1px solid rgba(255,255,255,.08);font-size:13.5px}
body .site-footer .site-info a{color:#C9CEE6}
/* Optional: eigener Fußbereich aus dem Block „DS24 Fußbereich“ (Filter ds24_fussbereich_ersetzen) */
body .site-footer .ds24-fussbereich .fuss .marke{color:#FFFBF2}

/* ---------- Ratgeber-Übersicht: Themen als Links, Blättern ---------- */
.ds24 .filter a{font:500 15px Figtree,system-ui,sans-serif;color:#1E2457;background:#fff;border:1px solid #D6DBEB;border-radius:999px;padding:8px 16px;text-decoration:none}
.ds24 .filter a:hover{border-color:#3E4F94}
.ds24 .filter a[aria-current]{background:#1E2457;color:#FFFBF2;border-color:#1E2457}
.ds24 .ds24-blaettern .nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:48px}
.ds24 .ds24-blaettern .page-numbers{display:inline-grid;place-items:center;min-width:44px;height:44px;padding:0 14px;border-radius:999px;border:1px solid #D6DBEB;color:#1E2457;text-decoration:none;font-weight:500}
.ds24 .ds24-blaettern .page-numbers.current{background:#1E2457;color:#FFFBF2;border-color:#1E2457}
.ds24 .ds24-blaettern .screen-reader-text{position:absolute;clip:rect(0 0 0 0);width:1px;height:1px;overflow:hidden}
.ds24 .karte-artikel .bild img{height:100%}

/* ---------- Beitragsvorlage: Inhalte aus dem Editor im Stil des Entwurfs ---------- */
.ds24-beitrag .prosa>*:first-child{margin-top:0}
.ds24-beitrag .prosa .wp-block-image img{border-radius:14px;height:auto}
.ds24-beitrag .prosa .wp-block-table table{width:100%;border-collapse:collapse}
.ds24-beitrag .prosa .wp-block-table td,.ds24-beitrag .prosa .wp-block-table th{border:0;border-bottom:1px solid #D6DBEB;padding:10px 12px;text-align:left}
/* Ältere Beiträge: Blöcke mit „volle Breite“ oder „weite Breite“ bleiben in der Textspalte */
.ds24-beitrag{overflow-x:clip}
.ds24-beitrag .prosa .alignfull,.ds24-beitrag .prosa .alignwide{margin-left:0;margin-right:0;width:auto;max-width:100%;left:auto;right:auto}
.ds24-beitrag .prosa iframe,.ds24-beitrag .prosa video,.ds24-beitrag .prosa embed{max-width:100%}
/* Textspalte darf schrumpfen; breite Tabellen scrollen in sich, statt die Spalte zu verbreitern */
.ds24-beitrag .artikel-raster>*{min-width:0}
.ds24-beitrag .prosa{overflow-wrap:break-word}
.ds24-beitrag .prosa table{display:block;max-width:100%;overflow-x:auto}
.ds24-beitrag .prosa img{max-width:100%;height:auto}
/* Footer: Facebook- und Instagram-Icon sind zweifarbig (Kreis und Zeichen). Der Filter oben macht daraus eine graue Fläche, deshalb hier ohne Filter. */
body .site-footer .footer-widgets a[href*="facebook.com"] img,body .site-footer .footer-widgets a[href*="instagram.com"] img,body .site-footer .footer-widgets a[href*="facebook.com"] img[data-src],body .site-footer .footer-widgets a[href*="instagram.com"] img[data-src]{filter:none}
body .site-footer .footer-widgets a[href*="instagram.com"] img{border-radius:50%;box-shadow:0 0 0 1px rgba(255,251,242,.3)}
