
/* =============================================
   VARIABLES & DESIGN TOKENS
   ============================================= */
:root {
  --uk-color-primary:       #c8292c;
  --uk-color-primary-hover: #a82224;
  --uk-color-dark:          #0E071D;
}

@view-transition {
  navigation: auto;
}


/* =============================================
   BASE RESET & GLOBALS
   ============================================= */
html {
  /* Schriftzuweisungen entfernt - wird komplett von fonts.css gesteuert */
  color: var(--uk-color-dark);
}

html,
body {
  min-height: 100vh;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
}

em, i {
  font-style: italic;
  font-weight: normal;
  color: inherit;
}

strong, b {
  font-style: normal;
  font-weight: bolder;
  color: inherit;
}

a {
  color: var(--uk-color-primary);
}

a:hover {
  color: var(--uk-color-primary);
  text-decoration: underline;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover,
h4 a:hover, h5 a:hover, h6 a:hover {
  text-decoration: none;
  color: inherit; 
}

hr {
  border-top: 1px solid;
  color: var(--uk-color-primary);
}


/* =============================================
   UIKIT OVERRIDES & ENHANCEMENTS
   ============================================= */
h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6,
.uk-heading-small,
.uk-heading-medium,
.uk-heading-large,
.uk-heading-divider,
.uk-heading-line,
.uk-heading-bullet {
  color: var(--uk-color-primary);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .uk-heading-medium {
    /* Mindestens 2rem, skaliert mit der Viewport-Breite, maximal 3.5rem */
    font-size: clamp(2.8rem, 8vw, 3.5rem) !important;
    line-height: 1.2 !important;
  }
}

h1.uk-heading-medium {
  text-indent: -0.06em;
}

.uk-text-primary,
.uk-link,
.uk-link:hover {
  color: var(--uk-color-primary) !important;
}

.uk-button-primary {
  background-color: var(--uk-color-primary) !important;
  border-color:     var(--uk-color-primary) !important;
  border-radius: 10px;
}

.uk-button-primary:hover {
  background-color: var(--uk-color-primary-hover) !important;
  border-color:     var(--uk-color-primary-hover) !important;
}

.uk-icon-button,
[uk-icon-button] svg {
  color: #fff;
} 

.uk-heading-divider {
  border-bottom-color: var(--uk-color-primary); 
  text-transform: uppercase;
}

.uk-heading-line {
  text-transform: uppercase;
}

.uk-heading-line > :last-child::after,
.uk-heading-line > :first-child::before {
  border-bottom-color: var(--uk-color-primary);
}

.uk-heading-bullet {
  text-transform: uppercase;
}

.uk-heading-bullet > :first-child::before {
  background-color: var(--uk-color-primary);
}



/* =============================================
   UK-TABLE — PRIMARY COLOR OVERRIDES
   ============================================= */

.uk-table-divider > :first-child > tr:not(:first-child) {
  border-top-color: color-mix(in srgb, var(--uk-color-primary) 95%, transparent);
}

.uk-table th {
  color: var(--uk-color-primary);
  border-bottom: 2px solid var(--uk-color-primary) !important;
}

.uk-table-hover > tbody > tr:hover {
  background-color: color-mix(in srgb, var(--uk-color-primary) 8%, transparent);
}

.uk-table-striped > tbody > tr:nth-of-type(odd) {
  background-color: color-mix(in srgb, var(--uk-color-primary) 5%, transparent);
}

.uk-table caption {
  color: var(--uk-color-primary);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
}




/* =============================================
   CUSTOM COMPONENTS
   ============================================= */
.info-text {
  position: relative; 
  padding-left: 10px; 
}

.info-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); 
  width: 5px; 
  height: 1em; 
  background-color: var(--uk-color-primary); 
}

/* Quadratische Aufzählungspunkte — nur block-list */

.block-list ul {
  list-style: none;
  padding-left: 0;
  line-height: 2.0;
}

.block-list ul li {
  position: relative;
  padding-left: 1.2em;
}

.block-list ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.5em;
  height: 0.5em;
  background-color: var(--uk-color-primary);
  margin-top: calc((1em * 2.0 - 0.5em) / 2);
}

.card-badge {
  display: inline-block;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  border-radius: 0.8em;
  background-color: white;
  color: var(--uk-color-dark);
  font-size: 0.8rem;
}

/* =============================================
   SUBGRID BLOCK
   ============================================= */

.block-subgrid img {
  display: block;
}

.subgrid-item-content {
  padding: 0.75rem 0;
}

.subgrid-item-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.subgrid-item-text {
  font-size: 1.0rem;
  color: var(--uk-color-dark);
}

/* Link-Hover — nur Bild */
.block-subgrid a:hover img {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.subgrid-image {
    width: 100%;
    height: auto;
    max-height: var(--img-height);
    object-fit: contain;
    display: block;
}


/* =============================================
   HEADER
   ============================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.header-logo {
  width: 350px;
  height: auto;
  max-width: 100%;
}

@media (max-width: 640px) {
  .header-logo {
    width: 250px;
  }
}


.header a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-new {
  display: grid;
  grid-template-columns: 1fr;
}

.header-image {
  position: relative;
  background-size: cover;
  background-position: center;
  /* height: 150px; */
  width: 100%;
}

.header-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.header-default {
  height: 100px;
  width: 100%;
  background-color: var(--uk-color-primary);
}

@media (min-width: 640px) {
  .header-image { height: 300px; }
}

/* =============================================
   NAVIGATION (DESKTOP) - GRÖSSE & LETTERSPACING
   ============================================= */
.uk-navbar-nav > li > a {
  position: relative;
  text-transform: uppercase;
  color: var(--uk-color-dark);
  transition: color 0.3s ease;
  
  display: inline-flex;
  justify-content: center;

  font-size: 1.1rem;      
  letter-spacing: 2px;     
}

.uk-navbar-nav > li:hover > a,
.uk-navbar-nav > li > a:hover {
  color: var(--uk-color-primary) !important;
  text-decoration: none; 
}

.uk-navbar-nav > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 2px; 
  background-color: var(--uk-color-primary);
  
  top: 50%;
  transform: translate(-50%, 14px); 
  
  transition: width 0.3s ease; 
}

.uk-navbar-nav > li:hover > a::after {
  width: 100%; 
}

.uk-navbar-nav > li.uk-active > a {
  color: var(--uk-color-primary) !important;
}

.uk-navbar-nav > li.uk-active > a::after {
  width: 100%; 
}

/* =============================================
   NAVIGATION (MOBILE FULLSCREEN)
   ============================================= */
#mobile-menu-modal .uk-modal-dialog {
  background-color: var(--uk-color-dark);
}

#mobile-menu-modal .uk-nav-primary > li > a {
  color: #ffffff;
}

#mobile-menu-modal .uk-nav-primary > li.uk-active > a,
#mobile-menu-modal .uk-nav-primary > li > a:hover {
  color: var(--uk-color-primary);
}

#mobile-menu-modal .uk-close-large {
  color: #ffffff;
}

#mobile-menu-modal .uk-close-large svg {
  color: var(--uk-color-dark) !important;
}

#mobile-menu-modal .uk-close-large:hover svg {
  color: var(--uk-color-primary) !important;
}

/* Styling für das SVG-Logo im mobilen Menü */
.mobile-menu-logo svg {
  width: 100px;          /* Gewünschte Breite des Logos auf dem Smartphone */
  height: auto;          /* Proportionale Höhe beibehalten */
  max-width: 60vw;       /* Verhindert, dass das Logo auf ganz kleinen Displays ausbricht */
  display: inline-block;
  padding-right: 15px;
}

/* Farb-Fix: Zwingt alle Pfade des SVGs im mobilen Menü zu Weiß */
.mobile-menu-logo svg path,
.mobile-menu-logo svg circle,
.mobile-menu-logo svg rect {
  fill: #ffffff !important;   /* Wenn Ihr Logo über Füllung gefärbt ist */
  stroke: #ffffff !important; /* Wenn Ihr Logo über Konturen gefärbt ist */
}

#nav {
  padding-left: 15px;
}

/* =============================================
   LAYOUT & GRID
   ============================================= */
.layout {
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: start;
}

.column {
  grid-column: 1 / -1;
}

@media (min-width: 769px) {
  .column {
    grid-column: span var(--span);
  }
}

.layout-bg {
  position: relative;
  overflow: hidden;
}

.layout-bg-image,
.layout-bg-image-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.layout-bg-image-blur {
  filter: blur(10px);
  transform: scale(1.1);
}

.layout-content {
  position: relative;
  z-index: 1;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main {
  flex-grow: 1;
  margin-bottom: 3rem;
}

.main h1 {
  margin-bottom: 1.5rem;
}

.termine p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.6;
}

.termine p .uk-text-muted {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.6;
}


/* =============================================
   PROJEKTE / GALERIE
   ============================================= */
.projects {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  gap: 0.5rem 1.5rem;
  line-height: 0;
  padding: 0;
  grid-auto-flow: dense;
}

.projects li {
  position: relative;
  --cols: 1;
  --rows: 1;
  overflow: visible;
  line-height: 1.5rem;
}

.projects li a {
  text-decoration: none;
}

.projects figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  color: #fff;
  line-height: 1.5rem;
  text-align: center;
}

.projects img {
  width: 100%;
  margin-bottom: 1.5rem;
}

.projects p {
  margin-top: 0;
  color: var(--uk-color-dark);
}

@media (min-width: 45em) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects li {
    grid-column: span var(--cols);
    grid-row: span var(--rows);
  }
}

/* =============================================
   FILTER
   ============================================= */
.filter {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  font-size: small;
}
.filter a {
  padding: .5rem 1rem;
  background: #fff;
  color: var(--uk-color-primary);
  margin-right: .5rem;
  border: 1px solid var(--uk-color-primary);
  border-radius: 3px;
  text-decoration: none;
}
.filter a:hover {
  background: var(--uk-color-primary);
  color:#fff;
  text-decoration: none;
}
.filter a.active {
  background: var(--uk-color-primary);
  color: #fff;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  justify-content: space-between;
  padding-top: 3rem;
}

.pagination span {
  color: #999;
}

/* =============================================
   UTILITIES
   ============================================= */
.blurred {
  filter: blur(20px);
}

footer {
  margin-top: auto;
}

.box-shadow {
  border-radius: 5px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
}

/* =============================================
   KIRBY BUTTON
   ============================================= */

.button {
  display: inline-block;
  padding: 0.5em 1.25em;
  border-radius: 2em;
  border: 2px solid var(--uk-color-primary);
  color: var(--uk-color-primary);
  background-color: transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  font-size: 1.0rem;
}

.button:hover {
  background-color: var(--uk-color-primary);
  color: #ffffff;
  text-decoration: none;
}

.button-archiv {
  display: inline-block;
  padding: 0.5em 1.25em;
  border-radius: 2em;
  border: 2px solid white;
  color: white;
  background-color: transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  font-size: 1.0rem;
}

.button-archiv:hover {
  background-color: var(--uk-color-primary);
  color: #ffffff;
  text-decoration: none;
}

/* =============================================
   UI-KIT FORMULAR
   ============================================= */

/* Standard-Rahmenfarbe auf UIkit Primary setzen */
.uk-input, 
.uk-textarea, 
.uk-select {
    border-color: var(--uk-color-primary); /* Nutzt Ihre UIkit-Variable oder Fallback-Blau */
    background-color: #f1f2f3; /* Helles Grau */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.uk-input {
  height: 50px;
}

.uk-select:not([multiple]):not([size]) {
  height: 50px;
}

/* Optional: Farbe beim Reinklicken (Fokus) intensivieren */
.uk-input:focus, 
.uk-textarea:focus, 
.uk-select:focus {
    border-color: var(--uk-color-primary);
}

.uk-form-label {
    font-size: 1.0rem; /* Macht die Schrift spürbar größer (Standard ist meist 0.875rem/14px) */
    font-weight: 500;   /* Optional: Etwas kräftiger für bessere Lesbarkeit */
}

.uk-input:focus, 
.uk-textarea:focus, 
.uk-select:focus {
    background-color: #ffffff; /* Wechselt auf reinweiß */
    border-color: var(--uk-color-primary);     /* Optional: Ein etwas dunkleres Blau beim Fokussieren */
    outline: none;
}

.debug-h1 {
  background: rgba(255, 0, 0, 0.15);
  outline: 1px solid lime;
}
