/*
Theme Name: OrmioTheme
Theme URI: https://ormio.de
Author: Ormio
Description: Schlankes Theme für Websites mit OrmioMember: Kopfzeile mit Menü, Fußzeile, volle Breite für Kongress- und Kursseiten. Menüs unter Design → Menüs; Farben, Schrift, Aufbau und Fußzeile im Customizer; Titel und Breite je Seite, Seiten von Astra behalten ihr Aussehen. Keine Meldungen, kein Ballast.
Version: 0.4.4
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ormio-theme
*/

:root{--ot-accent:#1f5fd1;--ot-accent-ink:#fff;--ot-main:var(--om-accent,var(--ot-accent));--ot-main-ink:var(--om-accent-ink,var(--ot-accent-ink));--ot-gold:#d9a93b;--ot-text:#1c2733;--ot-heading:#12202f;--ot-body-bg:#fff;--ot-header-bg:#fff;--ot-header-text:#1c2733;--ot-footer-bg:#12402a;--ot-footer-text:#d9e6dd;--ot-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--ot-width:1200px;--ot-pad:.54em}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ot-body-bg);color:var(--ot-text);font:400 16px/1.65 var(--ot-font)}
img,video,iframe{max-width:100%;height:auto}
a{color:var(--ot-link,var(--ot-main));text-decoration:none}
.entry-content a{text-decoration:underline}
h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.3;margin:0;padding:0;color:var(--om-heading,var(--ot-heading));font-family:var(--ot-heading-font,inherit)}
.entry-content :where(h1,h2,h3,h4,h5,h6){margin-bottom:20px}
h1{font-size:2.25rem;line-height:1.4}h2{font-size:1.875rem}h3{font-size:1.5rem}h4{font-size:1.25rem;line-height:1.2}h5{font-size:1.125rem;line-height:1.2}h6{font-size:1rem}
p{margin:0 0 1.75em;padding:0}
ul,ol{margin:0 0 1.5em 3em;padding:0}li{padding:0}li>ul,li>ol{margin-bottom:0;margin-left:1.5em}
.screen-reader-text{position:absolute;left:-9999px}
.skip-link:focus{left:8px;top:8px;background:#fff;padding:.6rem 1rem;z-index:1000}

/* Kopfzeile */
.ot-header{position:var(--ot-sticky,sticky);top:0;z-index:99;background:var(--ot-header-bg);box-shadow:var(--ot-header-shadow,0 6px 24px rgba(20,35,60,.08));border-bottom:3px solid transparent;border-image:linear-gradient(90deg,var(--ot-main),var(--ot-gold)) 1}
.admin-bar .ot-header{top:32px}
@media(max-width:782px){.admin-bar .ot-header{top:46px}}
.ot-header-in{box-sizing:content-box;max-width:var(--ot-width);margin:0 auto;padding:0 var(--ot-pad);min-height:79px;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.ot-brand{display:flex;align-items:center;gap:.5rem;font-weight:800;font-size:1.4rem;letter-spacing:-.02em;text-decoration:none;color:var(--ot-brand,#12402a)}
.ot-brand .custom-logo{max-height:var(--ot-logo-h,48px);width:auto}
.ot-brand-star{color:var(--ot-gold)}
.ot-brand-name{white-space:nowrap}
.ot-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:.2rem}
.ot-nav a{display:block;padding:.5rem .9rem;font-weight:500;color:var(--ot-header-text);text-decoration:none;border-radius:8px}
.ot-nav a:hover,.ot-nav .current-menu-item>a{color:var(--ot-main);text-decoration:none}
.entry-content a{text-decoration:underline}
.ot-nav .om-nav-cta>a{background:var(--ot-main);color:var(--ot-main-ink);border-radius:999px;padding:.55rem 1.4rem;margin-left:.6rem;box-shadow:0 8px 18px color-mix(in srgb,var(--ot-main) 22%,transparent)}
.ot-nav .om-nav-cta>a:hover{color:var(--ot-main-ink);transform:translateY(-1px)}
.ot-nav .sub-menu{display:none;position:absolute;background:var(--ot-header-bg);box-shadow:0 10px 30px rgba(20,35,60,.14);border-radius:10px;padding:.4rem;min-width:200px;flex-direction:column;align-items:stretch}
.ot-nav li{position:relative}.ot-nav li:hover>.sub-menu,.ot-nav li:focus-within>.sub-menu{display:flex}
.ot-burger{display:none;background:none;border:0;font-size:1.7rem;line-height:1;cursor:pointer;color:var(--ot-header-text);padding:.2rem .5rem}
@media(max-width:820px){
 .ot-burger{display:block}
 .ot-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--ot-header-bg);box-shadow:0 14px 24px rgba(20,35,60,.12);padding:.4rem 1rem 1rem}
 .ot-nav.is-open{display:block}
 .ot-nav ul{flex-direction:column;align-items:stretch}
 .ot-nav .sub-menu{display:flex;position:static;box-shadow:none;padding:0 0 0 1rem}
 .ot-nav .om-nav-cta>a{margin:.6rem 0 0;text-align:center}
}

/* Inhalt */
.ot-main{box-sizing:content-box;max-width:var(--ot-width);margin:0 auto;padding:4em var(--ot-pad);min-height:50vh}
.ot-main.is-narrow{max-width:760px}
.entry-title,.ot-entry-title{margin-bottom:1rem}
.ot-meta{color:#667;font-size:.9rem;margin:-.4rem 0 1.4rem}
.ot-entry>*:first-child{margin-top:0}
.ot-post{padding:0 0 1.6rem;margin:0 0 1.6rem;border-bottom:1px solid #e6eaf0}
.ot-post h2{font-size:1.5rem}
.ot-pager{display:flex;justify-content:space-between;gap:1rem;margin-top:2rem}
.alignwide{max-width:min(1400px,100vw - 2.4rem)}
.alignfull{width:100vw;margin-left:calc(50% - 50vw);max-width:100vw}
/* Kurs-, Tages- und Vortragsseiten: hellblau-grauer Grund wie bisher bei Astra, die Karten stehen darauf. */
body.om-course-page{background:#f0f5fa}

/* Advent-Seiten: volle Breite (das Plugin bricht die Abschnitte selbst mit 100vw aus); der Titel kommt aus der Seite. Kongress- und Kursseiten bleiben im normalen Inhaltsbereich. */
body.om-adv-page{overflow-x:clip}
body.om-adv-page .ot-main{max-width:none;padding:0;margin:0}
body.om-adv-page .entry-header{display:none}

/* Fußzeile */
.ot-footer{position:relative;background:var(--ot-footer-bg);color:var(--ot-footer-text);text-align:center;padding:2.4rem 1.2rem 1.8rem}
.ot-footer::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--ot-main),var(--ot-gold))}
.ot-footer-brand{font-weight:800;font-size:1.3rem;color:var(--ot-footer-brand,#fff)}
.ot-footer-brand::before{content:"\2726";color:var(--ot-gold);margin-right:.5rem}
.ot-footer-brand.has-logo{display:inline-flex;align-items:center;gap:.5rem}
.ot-footer-brand.has-logo::before{content:none}
.ot-footer-logo{height:36px;width:auto}
.ot-footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:.4rem 1.6rem;margin:1rem 0}
.ot-footer-links ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.4rem 1.6rem;justify-content:center}
.ot-footer a{color:var(--ot-footer-link,var(--ot-footer-text));font-weight:600;text-decoration:none}
.ot-footer a:hover{color:var(--ot-footer-hover,var(--ot-gold))}
.ot-footer-copy{margin:0;font-size:.85rem;color:var(--ot-footer-muted,#9db8a8)}
.ot-footer-credit{margin:.6rem 0 0;font-size:.8rem;color:var(--ot-footer-muted,#9db8a8)}
.ot-footer-credit a{font-weight:400;text-decoration:underline}

/* Fußzeile mit Spalten (Widgets) */
.ot-footer-cols{display:grid;grid-template-columns:repeat(var(--ot-cols,2),1fr);gap:2rem;max-width:var(--ot-width);margin:0 auto 1.6rem;padding:0 var(--ot-pad);text-align:left}
.ot-widget-title{font-size:1.05rem;margin:0 0 .6rem;color:var(--ot-footer-brand,#fff)}
.ot-footer .ot-widget ul{list-style:none;margin:0;padding:0}.ot-footer .ot-widget li{margin:0 0 .35rem}
.ot-footer .ot-widget p{margin:0 0 .8em}
.ot-footer-empty{margin:0;font-size:.85rem;opacity:.7}
@media(max-width:700px){.ot-footer-cols{grid-template-columns:1fr}.ot-footer-col:empty{display:none}}

/* Kopfzeile mit Logo in der Mitte */
.ot-hl-center .ot-header-in{flex-direction:column;justify-content:center;gap:.2rem;padding-top:.7rem;padding-bottom:.4rem}
.ot-hl-center .ot-nav ul{justify-content:center;flex-wrap:wrap}
@media(max-width:820px){.ot-hl-center .ot-header-in{flex-direction:row;justify-content:space-between;padding:0 var(--ot-pad)}}

/* Linien und volle Breite */
.ot-hline-plain .ot-header{border-bottom:1px solid #d1d5db;border-image:none}
.ot-hline-none .ot-header{border-bottom:0;border-image:none}
.ot-fline-none .ot-footer::before{display:none}
.ot-main.is-full{max-width:none;padding:0;min-height:0}
.ot-main.is-full .entry-header{max-width:var(--ot-width);margin:0 auto;padding:2em var(--ot-pad) 0}
