/*
Theme Name: Schaarwächter Editorial
Description: Asymmetrische persönliche Startseite und großzügige Reiseberichte.
Template: twentysixteen
Version: 0.1.0
*/
@font-face {
    font-family:"Source Sans 3";
    src:url("fonts/SourceSans3-Upright.woff2") format("woff2");
    font-weight:200 900; font-style:normal; font-display:swap;
}
@font-face {
    font-family:"Source Sans 3";
    src:url("fonts/SourceSans3-Italic.woff2") format("woff2");
    font-weight:200 900; font-style:italic; font-display:swap;
}
:root { --paper:#f8f7f3; --ink:#263431; --accent:#266058; --muted:#59645e; --line:#d9ddd3; --sans:"Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
html { scroll-padding-top:var(--pinned-header-offset,130px); }
.site-header-menu { max-height:calc(100dvh - 120px); overflow-y:auto; }
body { background:var(--paper); color:var(--ink); font:19px/1.8 var(--sans); }
body::before,body::after { display:none!important; }
.site { background:transparent; margin:0; }
.site-inner { max-width:1240px; }
.site-header { padding:0 48px; }
.site-header-main {
    position:fixed; top:0; left:50%; transform:translateX(-50%);
    width:calc(100% - 96px); max-width:1144px; z-index:500;
    padding:24px 0 18px; background:var(--paper);
    box-shadow:0 0 0 24px var(--paper);
}
body.admin-bar .site-header-main { top:32px; }
.site-header { padding-top:100px; }
.header-image { margin:0 0 30px; }
.header-image a {
    display:block; position:fixed; top:var(--banner-top,112px);
    left:50%; transform:translateX(-50%); width:calc(100% - 96px);
    max-width:1144px; z-index:400;
}
.header-image.banner-hidden a { visibility:hidden; pointer-events:none; }
.header-image img { display:block; width:100%; height:auto; border-radius:2px; }
.site-header-main { align-items:center; gap:24px; }
.site-branding { margin:0; }
.site-title { font:650 24px/1.3 var(--sans); letter-spacing:-.035em; }
.site-title a { color:var(--ink); }
.site-description { font:14px/1.6 var(--sans); color:var(--muted); }
.site-header-menu { margin:0 0 0 auto; }
.main-navigation { font:14px/1.5 var(--sans); margin:0; }
.main-navigation a { color:var(--muted); padding:12px 10px; }
.main-navigation a:hover,.main-navigation a:focus { color:var(--accent); }
.main-navigation .current-menu-item>a,.main-navigation .current-menu-ancestor>a { color:var(--accent); text-decoration:underline; text-underline-offset:7px; }
.site-content { padding:64px 48px 0; border-top:1px solid var(--line); }
.content-area { float:none; width:100%; margin:0; }
.site-main { margin:0; }
.site-main>article { margin-bottom:64px; }
.entry-header,.entry-summary,.entry-content,.entry-footer,.post-navigation,.comments-area,.pagination,.page-header { max-width:740px; margin-left:auto!important; margin-right:auto!important; }
.entry-header { margin-bottom:36px; }
.entry-title,.page-title { font:650 clamp(2rem,4.4vw,3.5rem)/1.13 var(--sans); color:var(--ink); letter-spacing:-.045em; overflow-wrap:break-word; }
.single .entry-header { max-width:960px; margin-bottom:50px; }
.single .entry-title { font-size:clamp(2rem,4vw,3.15rem); }
.entry-content,.entry-summary { float:none!important; width:auto!important; font-size:19px; line-height:1.8; }
.entry-content p { margin-bottom:1.5em; }
.entry-content a,.entry-footer a,.widget a,.site-info a { color:var(--accent); box-shadow:none; text-decoration:underline; text-underline-offset:.2em; text-decoration-thickness:1px; }
.entry-content a:hover { color:#173e38; box-shadow:none; text-decoration-thickness:2px; }
.entry-content a:has(img) { text-decoration:none; box-shadow:none; }
.entry-content h2,.entry-content h3,.entry-content h4 { clear:both; font-family:var(--sans); letter-spacing:-.025em; color:var(--ink); }
.entry-content h3 { font-size:1.4em; line-height:1.4; border-top:1px solid var(--line); padding-top:1.8em; margin:2.2em 0 1em; }
.entry-content::after { content:""; display:block; clear:both; }
.entry-content img { max-width:100%; height:auto; border-radius:2px; }
.entry-content .alignleft { margin:.4em 1.5em 1em 0; }
.entry-content .alignright { margin:.4em 0 1em 1.5em; }
.entry-content img.below-entry-meta { margin-left:0!important; max-width:100%; }
.editorial-wide-image { display:block; width:100%; margin:2em auto; }
.editorial-portrait-image { display:block; max-height:660px; width:auto; margin:2em auto; }
.entry-footer { float:none!important; width:auto!important; clear:both; border-top:1px solid var(--line); padding-top:24px; font:13px/1.8 var(--sans); color:var(--muted); }
.entry-footer>span { display:inline-block!important; margin:0 20px 8px 0!important; }
.entry-footer .avatar { display:none; }
.post-navigation,.post-navigation div+div { border-width:1px; border-color:var(--line); }
.post-navigation a { padding:24px 0; }
.post-navigation .post-title { font:600 24px/1.4 var(--sans); }
.post-navigation .meta-nav { font:12px/1.5 var(--sans); color:var(--muted); }
.sidebar { float:none; width:100%; margin:0; clear:both; padding:32px 0 0; border-top:1px solid var(--line); display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.widget { border:none; padding:0; margin-bottom:28px; font:15px/1.7 var(--sans); }
.widget .widget-title { font:600 12px/1.5 var(--sans); letter-spacing:.12em; color:var(--muted); margin-bottom:14px; }
.widget ul { list-style:none; margin:0; }
.widget li { margin-bottom:6px; }
/* Categories duplicate navigation; keep the search widget available. */
.sidebar .widget_categories { display:none; }
.sidebar { grid-template-columns:1fr; }
.site-footer { display:block; padding:24px 48px 32px; }
.site-footer .main-navigation { display:block; }
.site-footer .primary-menu { display:flex; flex-wrap:wrap; gap:4px 22px; border:none; }
.site-footer .main-navigation li { border:none; }
.site-footer .main-navigation a { font-size:12px; padding:8px 0; }
.site-info { font:12px/1.6 var(--sans); color:var(--muted); margin-top:20px; }
.site-info .site-title { font:inherit; letter-spacing:0; }
input,textarea,select { background:#fff; border-color:var(--line); border-radius:3px; font-family:var(--sans); color:var(--ink); }
button,input[type="submit"] { background:var(--accent); font-family:var(--sans); border-radius:3px; }
.menu-toggle { background:transparent; color:var(--ink); border:1px solid var(--line); font:600 13px/1.4 var(--sans); padding:12px 16px; margin:0; }
.menu-toggle:hover,.menu-toggle:focus,.menu-toggle.toggled-on { background:#edf0e7; color:var(--ink); border-color:var(--accent); }
a:focus-visible,button:focus-visible,input:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
body.home .entry-header { display:none; }
body.home .entry-content { max-width:none; }
.editorial-intro { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,.72fr); gap:90px; align-items:center; padding:14px 0 64px; }
.editorial-intro-copy { max-width:590px; }
.editorial-intro-copy>p:first-child { font:inherit; letter-spacing:normal; margin-bottom:1.3em; }
.editorial-portrait { margin:0; padding:22px; background:#edf0e7; border-radius:2px; width:310px; max-width:100%; justify-self:end; }
.editorial-portrait>a { display:block; }
.editorial-portrait img { display:block; float:none!important; margin:0!important; width:100%; max-width:100%; height:auto; border-radius:1px; }
.editorial-recent { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:30px 0; }
.editorial-recent p { margin:0; font:inherit; color:var(--ink); }
.editorial-recent a:last-child { display:inline; margin:0; font:inherit; letter-spacing:normal; }
.editorial-empty { display:none; }
.editorial-current-report .entry-content .report-small-image {
    width:150px; height:auto; max-width:100%; margin-top:6px;
}
.editorial-current-report .entry-content .report-route-image {
    border:1px solid var(--line); padding:4px; background:#fff;
}
.editorial-current-report .entry-content .report-detail-image {
    display:block; float:none; width:236px; height:auto; max-width:100%; max-height:420px;
    margin:28px auto;
}
.editorial-current-report .entry-content .report-detail-image.wp-image-2126 { width:360px; }
.editorial-current-report .entry-content .editorial-portrait-image {
    max-height:560px; width:auto; max-width:100%;
}
.editorial-current-report .entry-content h3 { scroll-margin-top:130px; }
.editorial-corsica-report .entry-content > p { display:flow-root; }
.editorial-corsica-report .report-inline-photos {
    float:left; display:flex; flex-wrap:wrap; gap:12px;
    width: min(312px, 45%); margin:6px 24px 16px 0;
}
.editorial-corsica-report .report-inline-photos > a { display:block; flex:1 1 130px; min-width:0; }
.editorial-corsica-report .entry-content .report-inline-photos .report-small-image {
    float:none; display:block; width:100%; height:auto; margin:0;
}
.editorial-corsica-report .entry-content table { border:none; table-layout:fixed; }
.editorial-corsica-report .entry-content table td { border:none; padding:10px; vertical-align:top; }
.editorial-corsica-report .entry-content table td > a:has(img) { display:block; }
.editorial-corsica-report .entry-content table .report-small-image {
    display:block; float:none; width:100%; height:auto; aspect-ratio:1;
    object-fit:cover; margin:0;
}
.editorial-corsica-report .entry-content table .report-route-image {
    object-fit:contain; background:#edf0e7;
}
@media(max-width:620px) {
    .editorial-corsica-report .report-inline-photos { width:40%; margin-right:16px; gap:10px; }
    .editorial-corsica-report .entry-content table td { padding:5px; }
}
.editorial-current-report .entry-content img.wp-image-2081.editorial-wide-image {
    width:100%; max-width:100%; margin-left:0!important;
}
.editorial-tour-overview .entry-content .editorial-tour-entry {
    border-left:2px solid var(--line); padding:8px 0 8px 24px;
    margin:0 0 18px; clear:both; display:flow-root;
}
.editorial-tour-year { font-weight:650; font-variant-numeric:tabular-nums; }
.editorial-tour-overview .entry-content img[align="left"] { float:left; margin:5px 22px 12px 0; }
.editorial-tour-overview .entry-content table { border:none; margin:4px 0 24px; }
.editorial-tour-overview .entry-content table td { border:none; padding:12px; background:#edf0e7; }
.editorial-tour-overview .entry-content table img { margin:0 auto; }
.tour-intro-photo { clear:both; padding:24px 0 34px; margin:0; }
.tour-intro-photo a { display:block; width:320px; max-width:100%; margin:auto; }
.editorial-tour-overview .tour-intro-photo img { display:block; width:100%; height:auto; margin:0; }
.tour-anniversary-photos { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:24px; align-items:center; padding:0 0 28px 26px; }
.tour-anniversary-photos figure { margin:0; min-width:0; }
.tour-anniversary-photos a { display:block; }
.editorial-tour-overview .tour-anniversary-photos img { display:block; width:100%; height:auto; max-height:320px; object-fit:contain; margin:0; }
@media(max-width:620px) {
    .editorial-tour-overview .entry-content .editorial-tour-entry { padding-left:16px; }
    .editorial-tour-overview .entry-content img[align="left"] { float:none; display:block; margin:0 auto 20px; }
    .editorial-tour-overview .entry-content table td { padding:8px; }
    .tour-anniversary-photos { grid-template-columns:1fr; padding-left:18px; gap:18px; }
    .editorial-tour-overview .tour-anniversary-photos img { max-height:360px; }
}
/* Compact homepage, without reducing the agreed text size. */
body.home .header-image { margin-bottom:18px; }
body.home .site-content { padding-top:28px; }
body.home .site-main>article { margin-bottom:28px; }
body.home .editorial-intro { padding:0 0 24px; gap:60px; }
body.home .editorial-intro-copy p { margin-bottom:1em; }
body.home .editorial-intro-copy p:last-child { margin-bottom:0; }
body.home .editorial-portrait { width:230px; padding:14px; }
body.home .editorial-portrait { width:auto; padding:0; background:transparent; }
body.home .editorial-portrait img { width:auto; height:var(--portrait-height,240px); max-width:100%; object-fit:contain; }
@media(max-width:620px) {
    body.home .editorial-portrait img { height:260px; }
}
body.home .editorial-recent { padding:18px 0; }
body.home .editorial-intro-copy .editorial-recent { margin-top:22px; }
body.home .sidebar { padding-top:20px; }
body.home .widget { margin-bottom:12px; }
body.home .site-footer { padding-top:12px; padding-bottom:20px; }
body.home .site-info { margin-top:10px; }
@media(min-width:1000px) { .single .entry-content img.editorial-wide-image { width:calc(100% + 160px); max-width:calc(100% + 160px); margin-left:-80px!important; } }
@media(min-width:910px) { .site-header-main { flex-wrap:wrap; } .site-header-menu { flex:1 1 100%; margin:0; } .main-navigation .primary-menu>li:first-child>a { padding-left:0; } }
@media(min-width:1200px) { .site-header-menu { flex:0 1 auto; margin-left:auto; } }
@media(max-width:909px) {
    .site-header { padding:150px 24px 0; } .site-title { font-size:21px; }
    .site-header-main { width:calc(100% - 48px); padding:20px 0 16px; box-shadow:0 0 0 24px var(--paper); }
    .site-header-menu { flex-basis:100%; margin:0; }
    .site-header-menu.toggled-on { margin-top:12px; }
    .main-navigation li,.main-navigation .primary-menu { border-color:var(--line); }
    .main-navigation a { min-height:44px; padding:13px 0; }
    .site-content { padding:40px 24px 0; } .site-footer { padding:24px; }
    .editorial-intro { gap:36px; grid-template-columns:minmax(0,1fr) minmax(180px,.65fr); padding-bottom:40px; }
    .editorial-portrait { padding:16px; }
}
@media(max-width:620px) {
    .site-header { padding:100px 20px 0; } .site-header-main { gap:10px; width:calc(100% - 40px); padding:18px 0 14px; box-shadow:0 0 0 20px var(--paper); } .site-title { font-size:19px; }
    .site-content { padding:32px 20px 0; } .site-footer { padding:20px; }
    .entry-content,.entry-summary { font-size:18px; line-height:1.75; }
    .editorial-intro { grid-template-columns:1fr; gap:24px; padding:0 0 32px; }
    .editorial-portrait { width:220px; max-width:100%; justify-self:end; }
    .editorial-recent { padding:24px 0; }
    .entry-content img.alignleft,.entry-content img.alignright { float:none; display:block; margin:1em auto; }
    .entry-content h3 { font-size:1.25em; }
    .sidebar { grid-template-columns:1fr; gap:0; }
}
@media (max-width:782px) { body.admin-bar .site-header-main { top:46px; } }
@media (max-width:909px) { .header-image a { width:calc(100% - 48px); } }
@media (max-width:620px) { .header-image a { width:calc(100% - 40px); } }

/* Saved Gutenberg columns: the text determines the height, CSS fits the portrait.
   No DOM rewriting, image replacement or JavaScript measurements needed. */
body.home .wp-block-columns.editorial-intro {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,.72fr);
    gap:60px; align-items:stretch; margin:0; padding:0 0 24px;
}
body.home .editorial-intro > .wp-block-column { min-width:0; margin:0; }
body.home .editorial-portrait-column { position:relative; }
body.home .editorial-portrait-column .editorial-portrait {
    position:absolute; inset:0; margin:0; width:100%; height:100%; padding:0; background:transparent;
}
body.home .editorial-portrait-column .editorial-portrait img {
    display:block; width:100%; height:100%; max-width:100%; max-height:none;
    object-fit:contain; object-position:right center;
}
body.home .editorial-recent > p { margin:0; }
@media (min-width:621px) and (max-width:909px) {
    body.home .wp-block-columns.editorial-intro { gap:36px; grid-template-columns:minmax(0,1fr) minmax(180px,.65fr); }
}
@media (max-width:620px) {
    body.home .wp-block-columns.editorial-intro { grid-template-columns:1fr; gap:24px; }
    body.home .editorial-portrait-column .editorial-portrait { position:static; width:100%; height:260px; }
}
/* Twenty Sixteen already emits no-js. Without scripts keep header/menu in flow,
   rather than relying on JavaScript to measure the fixed navigation/banner. */
.no-js .site-header-main { position:static; transform:none; width:auto; max-width:none; box-shadow:none; }
.no-js .site-header { padding-top:24px; }
.no-js .header-image a { position:static; transform:none; width:auto; max-width:none; }
.no-js .site-header-menu { max-height:none; overflow:visible; }
.no-js .menu-toggle { display:none; }
.no-js .site-header-menu { display:block; }
