@charset "utf-8";
/* CSS Document */

/* INDEX: Kacheln größer + Abstand steuern */
body.page-index .kb-page .columns.is-multiline.is-mobile{
  --bulma-column-gap: 3.20rem;
}
/* 
.page-index .kb-page .columns.is-multiline{
  --bulma-column-gap: 1.5rem;
}
*/

body.page-index a.kb-hero-tile-index img{
  width: 110px !important; /* Grafiken (KB-Index-seiten verändern */
  max-width: none !important;
  height: auto;
  display: block;
}


/* =========================================================
   1) BASIS / SEITENRAHMEN (Anmutung: grau außen, weiß innen)
   ========================================================= */
.kb-body {
  background: #e6e6e6;
}

.kb-page {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}


/* =========================================================
   2) NAVBAR (Bulma-Navbar dezent halten)
   ========================================================= */
.kb-navbar {
  border-bottom: 1px solid rgba(0,0,0,.08);
}


/* =========================================================
   3) STARTSEITE: KOPF (Titel + Logo)
   ========================================================= */
.kb-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
}

.kb-logo img{
  max-width: 140px;
  height:auto;
}


/* =========================================================
   4) KACHELN (Bezirks-Kacheln / Navigation)
   ========================================================= */
.kb-tile{
  display:block;
  text-align:center;
  padding: .6rem .45rem;   /* kompakter */
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  background: #fff;
  transition: transform .08s ease;
}

.kb-tile:hover{
  transform: translateY(-2px);
}

.kb-tile-img{
  width: 80px;
  max-width: 100%;
  height: auto;
}

/* NUR index: Kachelbilder größer */
.page-index .kb-tile{
  border: 0;
  box-shadow: none;
  background: transparent;
}

.page-index .kb-tile-img{
  width: 510px;   /* hochdrehen */
  height: auto;
}

/* =========================================================
   HERO: KACHELN IM HEADER (wie Alt: oben im Banner)
   ========================================================= */


/* =========================================================
   HEADER: gleiche Breite wie Content
   ========================================================= */
.kb-hero{
  margin-top: 0.2rem;      /* oder 0.75rem */
  margin-bottom: 0rem;   /* Abstand zum Content */
  max-width: 1060px;        /* wie .kb-page */
  margin-left: auto;
  margin-right: auto;
  border-radius: 6px;       /* optional: wie Content */
  overflow: hidden;         /* wichtig: damit Bild nicht “rausläuft” */
}


.kb-hero-tiles{
  margin-top: .75rem;
  max-width: 620px;              /* weniger “steril breit” */
}

.kb-hero-tiles .column{
  padding: .75rem .45rem;
}

.kb-hero-tile{
  display:block;
  text-align:left;
  color: #fff;
  text-decoration: none;
}

.kb-hero-tile img{
  width: 85px;                  /* Grafiken (KB-Titelseiten verändern */
  height: auto;
  display:block;
  margin-bottom: .35rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}

.kb-hero-tile-title{
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}


.kb-hero-tile-title-index{
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.1;
  color:#111;
  text-shadow: 0 1px 1px rgba(255,255,255,.6); /* heller Schatten statt dunkel */
}

/* =========================================================
   HERO / HEADERBILD: NICHT KACHELN
   ========================================================= */
.kb-hero-body{
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}

/* NUR index: Header höher */
.kb-hero-index .kb-hero-body{
  min-height: 360px;          /* <- hier höher/tiefer drehen */
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  background-size: cover;
  background-position: center;
}



/* KB-Cover der aktuellen Bezirksausgabe (fluid, aber begrenzt) */
/* =========================================================
max-width: clamp(150px, 20vw, 220px) bedeutet:
mindestens 150 px
ideal/mitwachsend: 20 % der Fensterbreite
höchstens 220 px
   ========================================================= */
.kb-intro-image{
  max-width: clamp(150px, 20vw, 220px); /* letztes Zahlenpaar steuert die absoluten Größe der Grafik */
  margin-left: auto;
  margin-right: auto;
}

.kb-intro-image img{
  width: 100%;
  height: auto;
  display: block;
}


/* Weißraum reduzieren: weißer Block nicht endlos breit */
.kb-page{
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

/* England-Flagge: immer proportional */
.kb-flag {
  height: 18px;      /* wie im alten Layout */
  width: auto;       /* wichtig: Proportionen bleiben */
  max-width: none;
  display: inline-block;
  vertical-align: middle;
}

/* Subnav unter dem Header – gleiche Breite/Optik */
.kb-subnav-wrap{
  padding: .35rem 0 .15rem;   /* Abstand zum roten Banner */
}

.kb-subnav{
  font-size: .95rem;
  font-weight: 600;
}

.kb-subnav a{
  color: #6b6b6b;
  text-decoration: none;
}

.kb-subnav a:hover{
  text-decoration: underline;
}

.kb-subnav-sep{
  margin: 0 .5rem;
  color: #9a9a9a;
}

/* NAVBAR: Hauptmenü mittig */
.kb-navbar .navbar-menu{
  display:flex;
  justify-content:center;
}
/* Suche im Header/Subnav sauber einpassen */
.kb-searchbox{
  margin-top: .35rem;
  margin-bottom: .75rem;  
  margin-right: 25.75rem;
}

/* Breite begrenzen, aber responsiv */
.kb-searchbox .input{
  width: min(260px, 70vw);
}

/* Mobile: Hero überall weg – nur Index behält ihn */
@media (max-width: 768px){
  body.kb-body:not(.page-index) section.kb-hero{
    display: none !important;
  }
}

/* Mobile: bei Detailseiten (Rubriken2 / Branchen-3) zuerst Einträge, dann Menü */
@media (max-width: 768px){

  /* Rubriken2: Spalten umdrehen */
  body.page-rubriken2 .kb-page > .columns{
    display: flex;
    flex-direction: column-reverse;
  }

  /* Branchen-3: Spalten umdrehen */
  body.page-branchen-3 .kb-page > .columns{
    display: flex;
    flex-direction: column-reverse;
  }

  /* Optional: etwas Luft zwischen Einträgen und Menü */
  body.page-rubriken2 .kb-page > .columns > .column,
  body.page-branchen-3 .kb-page > .columns > .column{
    margin-bottom: 1rem;
  }
}

/* Rubriken-Menü: Linkfarbe nicht Bulma-blau */
.kb-rubriken a{
  color: inherit;
}

.kb-rubriken a:hover{
  text-decoration: underline;
}