
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Source+Sans+Pro:wght@300;400;600&family=Source+Code+Pro:wght@400;500&display=swap');



:root{
  /* Combined palette: technical blue + desert sand */
  --bg-main: #F6F4F1;
  --bg-sand: #E9D8BF;
  --bg-surface: #D8C2A4;
  --line-soft: #CFCBC6;

  --text-main: #2B2B2B;
  --text-soft: #5F5B55;
  --text-meta: #8A867F;

  --accent-main: #3A6EA5;
  --accent-dark: #2C527A;
  --accent-soft: #8FAFD1;

  --warm-main: #C98A3A;
  --warm-soft: #E6B873;
  --warm-hover: #B0722A;

  --shadow: 0 18px 60px rgba(0,0,0,.10);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.08);

  /* You wanted no rounding */
  --radius-lg: 0px;
  --radius-md: 0px;
  
  --font-headline: 'Lora', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  --font-mono: 'Source Code Pro', monospace;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }




body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
}

h1, h2, h3, h4{
  font-family: var(--font-headline);
}

h1{
  line-height: 1.15;
}

h2{
  line-height: 1.25;
}

/* ---------- Background (subtle sand + dune wave; no photo) ---------- */
.bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 70% 18%, rgba(230,184,115,.45), rgba(230,184,115,0) 60%),
    radial-gradient(800px 500px at 15% 20%, rgba(143,175,209,.18), rgba(143,175,209,0) 55%),
    linear-gradient(180deg, var(--bg-main) 0%, #F1E8DD 35%, var(--bg-sand) 100%);
}

.bg-glow{
  position:absolute;
  inset:0;
  background: radial-gradient(640px 320px at 68% 20%, rgba(255,255,255,.65), rgba(255,255,255,0) 70%);
  opacity:.7;
}

.bg-dune{
  position:absolute;
  left:-10%;
  right:-10%;
  top: 18%;
  height: 320px;
  background:
    radial-gradient(900px 240px at 65% 58%, rgba(201,138,58,.16), rgba(201,138,58,0) 70%),
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0) 65%);
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.05);
  clip-path: path("M 0 190 C 240 120, 420 230, 640 170 C 900 95, 1120 250, 1400 140 L 1400 320 L 0 320 Z");
  opacity:.55;
}

/* ---------- Layout ---------- */
.page{
  position:relative;
  z-index:1;
  min-height:100vh;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 20px 60px;
}

/* ---------- Header / Nav ---------- */
.site-header{
  max-width:1100px;
  margin: 18px auto 0;
  padding: 0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  text-decoration:none;
  color: var(--text-main);
  font-weight: 750;
  letter-spacing: .2px;
  font-size: 30px;
}

.nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.nav a{
  color: var(--text-soft);
  text-decoration:none;
  font-size: 18px;
  letter-spacing:.2px;
  padding: 8px 10px;
  border-radius: 0;
  border: 1px solid transparent;
}

.nav a:hover{
  background: rgba(58,110,165,.08);
  color: var(--accent-dark);
}

.nav a.active{
  background: none;
  border: none;
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-dark);
  padding-bottom: 6px;
}


/* ---------- Typography ---------- */
.lead{
  margin:0;
  color: var(--text-soft);
  max-width: 60ch;
  font-size: 16px;
}

.page-title{
  margin: 8px 0 10px;
  font-size: 34px;
  color: var(--text-main);
}

/* ---------- Buttons (still used in band) ---------- */
.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 0;
  text-decoration:none;
  color: #fff;
  background: var(--accent-main);
  border: 1px solid rgba(58,110,165,.25);
  box-shadow: var(--shadow-soft);
}

.btn:hover{ background: var(--accent-dark); }

.btn.ghost{
  background: rgba(255,255,255,.55);
  color: var(--accent-dark);
  border: 1px solid rgba(58,110,165,.22);
  box-shadow: none;
}

.btn.ghost:hover{
  background: rgba(58,110,165,.08);
}

.btn.small{
  padding: 8px 12px;
  border-radius: 0;
  font-size: 13px;
}

/* ---------- Hero split (text left, image right) ---------- */
.hero-split{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
  padding-top: 18px;
  padding-bottom: 10px;
}

.hero-right{
  justify-self: end;
  width: 110%;
  max-width: 620px;

  margin-top: 115px;   /* ← DAS ist dein "Start bei Textbeginn" */
}

@media (max-width: 900px){
  .hero-right{
    margin-top: 0;
    max-width: none;
	width: 100%;
  }
}


.hero-left{
  max-width: 72ch;
}

.hero-split h1{
  font-size: 42px;
  margin: 0 0 10px;
  color: var(--text-main);
}



.hero-image {
  width: 100%;
  height: auto;          /* wichtig */
  aspect-ratio: 5 / 3;  /* ← HIER stellst du das Verhältnis ein */
  object-fit: cover;
  display: block;

  border: none;
  background: transparent;
  box-shadow: none;
}



/* ---------- Combined bottom box with vertical divider ---------- */
.home-band{
  margin-top: 18px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.band-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.band-col{
  padding: 18px;
  min-height: 260px;
}

.band-col + .band-col{
  border-left: 1px solid rgba(0,0,0,.08);
}

.band-title{
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text-main);
}

.band-title a{
  color: inherit;
  text-decoration: none;
}
.band-title a:hover{ text-decoration: underline; }

.band-text{
  margin: 0 0 14px;
  color: var(--text-soft);
  max-width: 65ch;
}

.band-post{
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.band-post:first-of-type{
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}


.band-post-title{
  display: inline-block;
  font-weight: 750;
  color: var(--accent-dark);
  text-decoration: none;
}
.band-post-title:hover{ text-decoration: underline; }

.band-desc{
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.band-actions{
  margin-top: 14px;
}

/* ---------- Blog list ---------- */
.post-row{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  padding: 16px;
  margin-top: 14px;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,.07);
  background: rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.post-row-title{ margin: 6px 0 8px; }
.post-row-title a{ color: var(--text-main); text-decoration:none; }
.post-row-title a:hover{ text-decoration: underline; }
.post-row-desc{ margin: 0 0 12px; color: var(--text-soft); }

.post-thumb{
  width:100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,.08);
}

/* ---------- Single post ---------- */
.post-hero{
  width:100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,.08);
  margin: 14px 0 8px;
}

.prose{
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
}

/* --- Prose: embedded images (Markdown + figure shortcode) --- */
.prose img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* figure/caption styling (works for Hugo figure shortcode) */
.prose figure{
  margin: 1.25rem 0;
}

.prose figure img{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(0,0,0,.08);
}

.prose figcaption{
  font-size: 0.9rem;
  color: var(--text-meta);
  margin-top: 0.5rem;
  line-height: 1.3;
}

/* Optional: charts/infographics should not dominate */
.prose .chart img{
  max-height: 70vh;
  object-fit: contain;
}

/* =========================
   Content Images (Prose)
   ========================= */
.prose img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Figure baseline */
.prose .c-fig{
  margin: 1.25rem 0;
}

.prose .c-fig img{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 0px;
}

/* Caption */
.prose .c-fig figcaption{
  font-size: 0.9rem;
  opacity: .75;
  margin-top: .5rem;
  line-height: 1.3;
}

/* =========================
   Controls (optional classes)
   ========================= */

/* Wenn ein Bild (v.a. Charts) zu hoch/dominiert: */
.prose .c-fig.maxh-sm img{ max-height: 45vh; object-fit: contain; }
.prose .c-fig.maxh-md img{ max-height: 60vh; object-fit: contain; }
.prose .c-fig.maxh-lg img{ max-height: 75vh; object-fit: contain; }

/* „contain“ = alles sichtbar (gut für Diagramme/Infografiken) */
.prose .c-fig.contain img{ object-fit: contain; }

/* „cover“ = füllt den Rahmen (gut für Fotos), kann croppen */
.prose .c-fig.cover img{ object-fit: cover; }

/* Wenn du NICHT volle Breite willst (z.B. Foto kleiner im Text) */
.prose .c-fig.w-80 img{ width: 80%; margin: 0 auto; }
.prose .c-fig.w-60 img{ width: 60%; margin: 0 auto; }

/* Optional: ohne Rahmen */
.prose .c-fig.no-border img{ border: none; }

/* =========================
   Grid for 2/3 images
   ========================= */
.prose .c-grid{
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: start;
}

.prose .c-grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .c-grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Figures im Grid: weniger Außenabstand */
.prose .c-grid .c-fig{ margin: 0; }

/* Mobile: immer 1 Spalte */
@media (max-width: 800px){
  .prose .c-grid-2,
  .prose .c-grid-3{
    grid-template-columns: 1fr;
  }
}


.prose a{ color: var(--accent-dark); }

.credit{
  margin-top: 14px;
  color: var(--text-meta);
  font-size: 13px;
}

.site-footer{
  max-width:1100px;
  margin: 34px auto 24px;
  padding: 0 20px;
  color: var(--text-meta);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-split{
    grid-template-columns: 1fr;
  }
  .hero-right{
    justify-self: start;
    max-width: 680px;
  }
  .hero-image{
    height: 200px;
  }

  .band-split{
    grid-template-columns: 1fr;
  }
  .band-col + .band-col{
    border-left: none;
    border-top: 1px solid rgba(0,0,0,.08);
  }

  .post-row{
    grid-template-columns: 1fr;
  }
  .post-thumb{
    height: 200px;
  }

  .hero-split h1{
    font-size: 36px;
  }
}
/* --- Home: Blog tiles as square previews --- */

.blog-tiles{
  display: grid;
  grid-template-columns: 1fr 1fr;   /* nebeneinander */
  gap: 16px;
  margin-top: 10px;
}

.blog-tile{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
}

/* Quadrat erzwingen */
.blog-tile-media{
  width: 100%;
  aspect-ratio: 4 / 3;              /* ← Seitenverhältnis der Blog Thumbnails */
  overflow: hidden;
  background: rgba(233,216,191,.35);
}

.blog-tile-media img,
.blog-tile-fallback{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text unter dem Bild */
.blog-tile-body{
  padding: 12px;
}

/* Button unten rechts */
.band-col-blog{
  position: relative;
  padding-bottom: 56px;
}

.band-actions.corner{
  position: absolute;
  right: 18px;
  bottom: 18px;
}
@media (max-width: 900px){
  .blog-tiles{
    grid-template-columns: 1fr;
  }
}

.band-meta{
  font-size: 12px;
  color: var(--text-meta);
  margin-bottom: 6px;
}

/* ---------- Mobile Navigation (Hamburger + Off-Canvas) ---------- */

/* Desktop/Mobile Umschaltung */
.nav-desktop { display: flex; }
.nav-toggle { display: none; }
.nav-mobile, .nav-backdrop { display: none; }

/* Hamburger Button */
.nav-toggle{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  padding: 0;
  cursor: pointer;
}

.nav-toggle-icon{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: var(--text-main);
}

.nav-toggle-icon::before{ top: -6px; }
.nav-toggle-icon::after { top:  6px; }

/* Backdrop */
.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 60;
}

/* Panel */
.nav-mobile{
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(360px, 86vw);
  background: rgba(245, 238, 224, 0.98);
  border-left: 1px solid rgba(0,0,0,.10);
  box-shadow: -20px 0 50px rgba(0,0,0,.18);
  z-index: 70;
  padding: 14px;
  transform: translateX(100%);
  transition: transform .25s ease;
}

.nav-mobile-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 6px 4px 10px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  margin-bottom: 10px;
}

.nav-mobile-title{
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 18px;
}

.nav-close{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

/* Links im Panel: große Touch Targets */
.nav-mobile-links a{
  display:block;
  padding: 12px 12px;
  margin: 6px 0;
  text-decoration:none;
  color: var(--text-main);
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.40);
}

.nav-mobile-links a:hover{
  background: rgba(58,110,165,.08);
  color: var(--accent-dark);
}

.nav-mobile-links a.active{
  border-color: rgba(58,110,165,.35);
  background: rgba(58,110,165,.10);
}

.nav-sep{
  height: 1px;
  background: rgba(0,0,0,.12);
  margin: 10px 4px;
}


/* Open state: JS toggles html.nav-open and hidden attributes */
html.nav-open .nav-backdrop:not([hidden]){
  display: block;
}
html.nav-open .nav-mobile:not([hidden]){
  display: block;
  transform: translateX(0);
}

/* Wenn Menü offen: Scroll sperren */
html.nav-open, html.nav-open body{
  overflow: hidden;
}

/* Mobile breakpoint: Desktop-Nav aus, Toggle/Panel an */
@media (max-width: 900px){
  .nav-desktop{
    display:none;
  }
  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  /* Header etwas kompakter für Mobile */
  .site-header{
    margin-top: 10px;
  }
  .brand{
    font-size: 26px;
  }

}

/* --- Mobile Nav tweaks --- */
.nav-mobile{
  width: clamp(280px, 66vw, 360px);
}
.nav-mobile-links a{
  font-size: 16px;
  padding: 10px 12px;
}
.nav-mobile-title{
  font-size: 17px;
}
.nav-close{
  width: 40px;
  height: 40px;
  font-size: 22px;
}
