/*Seitenbreite begrenzen*/
.container {
  max-width: 1400px; /* Begrenzt die Breite, passt sich aber kleinen Bildschirmen an */
  width: 100%;        /* Breite auf kleinen Bildschirmen (optional) */
  margin: 0 auto;    /* Zentriert das Element horizontal */
}
/*Breadcrumbs formatieren*/
.breadcrumb {
  font-size: 1.0rem;
}
/*Blogartikel formatieren*/
.container-bottom .blog .page-header {
 padding-top: 50px;
  padding-bottom: 20px;
  background-color: #ffffff;
}
.container-bottom {
  max-width: 1400px; /* Begrenzt die Breite, passt sich aber kleinen Bildschirmen an */
  width: 100%;        /* Breite auf kleinen Bildschirmen (optional) */
  margin: 0 auto;    /* Zentriert das Element horizontal */
  }
.container-bottom p {
  padding-top: 5px;
  padding-left: 15px;
  padding-right: 15px;
  font-size: 1.1rem;
}
.container-bottom  a {
  text-decoration: none;
}
.container-bottom .blog-item .item-content {
  background-color: #f0f0f0;
}
.container-bottom .blog-item .item-title {
  background-color: #FFFFFF;
  padding-top:50px;
  padding-bottom: 20px;
}
.container-bottom .blog-item .item-title h2 {
  font-size: 2.5rem;
}
/* Farbe für verlinkte Beitragstitel (z.B. im Blog-Layout) */
.container-bottom .blog .page-header a,
.item-title a {
    color: #104e8b; /* Hier Wunschfarbe einfügen */
    text-decoration: none; /* Unterstreichung optional entfernen */
  font-weight: normal;
  font-size: 2.0rem;
}
/* Farbe beim Drüberfahren (Hover) */
.container-bottom .blog .page-header a:hover,
.item-title a:hover {
    color: #1d8eb7; /* Farbe bei Hover */
}
.container-bottom .card {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
  color: #104e8b;
  decoration: none;
}

/*Formatierung Fußzeile*/
.footer .grid-child {
  padding: 0.4em;
  justify-content:center;
  font-size: 0.8em;
  background-color: #000000;
}
:root{
  --gap: 10px;
  --radius: 12px;
  --depth: 10px;
  --elev: 0 8px 20px rgba(0,0,0,.25);
  --elev-hi: 0 14px 28px rgba(0,0,0,.33);
  --text: #fff;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --menu-bg: rgba(20,22,26,.96);
  --menu-border: rgba(255,255,255,.14);
}

/* Leiste unten fixiert – ohne Hintergrund */
.tile-bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  width: 100%;
  will-change: transform;
}

/* 3 Kacheln nebeneinander, volle Breite */
.tiles{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  padding-bottom: calc(var(--gap) + max(8px, var(--safe-bottom)));
  width: 100%;
  box-sizing: border-box;
}

/* Jede Kachel ist ein eigener Hover-Container */
.tile{
  position: relative;
  display: grid;
  grid-template-rows: auto;
  align-items: start;
  justify-items: stretch;
  perspective: 800px;
  min-width: 0;
}

/* 3D-Karten-Stil – 50% höher */
.card{
  position: relative;
  display: block;
  min-height: calc(86px * 1.5); /* vorher 86px */
  border-radius: var(--radius);
  box-shadow: var(--elev);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  padding: 12px 14px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

/* Label doppelt so groß, zentriert, weniger fett – am unteren Rand */
.card .label{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: .1px;
  text-align: center;
  display: block;
}

/* Hover-Effekt */
.tile:hover .card,
.tile:focus-within .card{
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: var(--elev-hi);
  filter: brightness(1.05);
}

/* Fokus-Ring */
.card:focus-visible{
  outline: 3px solid rgba(255,255,255,.6);
  outline-offset: 2px;
}

/* Icon links oben, größer */
.icon{
  position: absolute;
  top: 12px;
  left: 12px;
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

/* Farbvarianten (auf dem Link-Element) */
.tile-about{ background: linear-gradient(135deg, #104e8b, #1d8eb7); }
.tile-future{ background: linear-gradient(135deg, #1d8eb7, #88c8c4); }
.tile-news{ background: linear-gradient(135deg, #1d8eb7, #104e8b); }

/* Menü pro Kachel: erscheint direkt über der Kachel, Einträge untereinander */
.tile-menu{
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .24s ease, opacity .24s ease;
}
.tile:hover .tile-menu,
.tile:focus-within .tile-menu{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.tile-menu ul{
  margin: 0;
  padding: 8px;
  list-style: none;
  display: grid;
  gap: 8px;
  background: var(--menu-bg);
  border: 1px solid var(--menu-border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  width: 100%;
  box-sizing: border-box;
}
.tile-menu a{
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.tile-menu a:hover,
.tile-menu a:focus-visible{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.24);
   color: #c85336 !important;
  transform: translateY(-1px);
}

/* Bewegungen reduzieren */
@media (prefers-reduced-motion: reduce){
  .card,
  .tile-menu a,
  .tile-menu{ transition: none !important; }
}

/* Immer nebeneinander – auch mobil (erhöhte Spezifität + !important) */
nav.tile-bar .tiles{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--gap) !important;
  width: 100% !important;
}
nav.tile-bar .tiles > *{ flex: 0 0 auto !important; }

/* Responsive: Kacheln 10% weiter nach unten schieben */
@media (max-width: 900px){
  nav.tile-bar{ transform: translateY(10vh) !important; }
}
@media (max-width: 720px){
  nav.tile-bar{ transform: translateY(10vh) !important; }
}
@media (max-width: 480px){
  nav.tile-bar{ transform: translateY(10vh) !important; }
}

/* Responsive Typografie & Icon-Größen (strikt) */
@media (max-width: 900px){
  .card .label{ font-size: 1.4rem !important; line-height: 1.15; }
  .icon{ width: 44px !important; height: 44px !important; }
  .tiles{ padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 720px){
  .card .label{ font-size: 1.2rem !important; }
  .icon{ width: 40px !important; height: 40px !important; }
  .card{ min-height: 110px; }
  .tiles{ padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 560px){
  .card .label{ font-size: 1.05rem !important; }
  .icon{ width: 36px !important; height: 36px !important; }
  .tiles{ gap: 6px; }
}
@media (max-width: 420px){
  .card .label{ font-size: 0.95rem !important; }
  .icon{ width: 32px !important; height: 32px !important; }
  .tiles{ padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Menüeinträge responsiv kleiner, damit nichts abgeschnitten wird */
.tile-menu ul{ overflow: visible; }
.tile-menu a{
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}
@media (max-width: 900px){
  .tile-menu a{
    font-size: 0.95rem !important;
    line-height: 1.15 !important;
    padding: 8px 10px !important;
  }
}
@media (max-width: 720px){
  .tile-menu a{
    font-size: 0.9rem !important;
    line-height: 1.15 !important;
    padding: 8px 10px !important;
  }
}
@media (max-width: 560px){
  .tile-menu a{
    font-size: 0.85rem !important;
    line-height: 1.15 !important;
    padding: 7px 9px !important;
    letter-spacing: 0;
  }
}
@media (max-width: 420px){
  .tile-menu a{
    font-size: 0.8rem !important;
    line-height: 1.15 !important;
    padding: 6px 8px !important;
  }
}
/* Menüfarben anpassen: freundliches Grau + blaue Schrift (#104e8b) */
:root{
  --menu-bg: #f2f3f5;
  --menu-border: #d6d9df;
}

.tile-menu ul{
  background: var(--menu-bg) !important;
  border-color: var(--menu-border) !important;
}

.tile-menu a{
  color: #104e8b !important;
  background: #ffffff !important;
  border-color: #c9ced6 !important;
}

.tile-menu a:hover,
.tile-menu a:focus-visible{
  background: #e9ecef !important;
  border-color: #b9c0ca !important;
}
/*Schriftgrößen responsiv*/
@media (min-width: 768px) { /* Nur auf größeren Bildschirmen */
    body {
        font-size: clamp(16px, 2vw, 18px); /* 16px min, dynamisch (2% Viewport), 18px max */
    }
}
@media (max-width: 767px) { /* Auf kleineren Bildschirmen */
    body {
        font-size: clamp(14px, 3vw, 16px); /* 14px min, dynamisch, 16px max */
    }
}
