/* === Responsive Base === */
*,*::before,*::after{box-sizing:border-box}
html{line-height:1.5}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;color:#111;background:#fff}
:root{
  --max-w: 1200px;
  --space: clamp(0.75rem, 1.2vw, 1.25rem);
  --space-lg: clamp(1rem, 2vw, 2rem);
  --radius: 14px;
}
h1{font-size:clamp(1.8rem,4.5vw,3rem);margin:0 0 .5em}
h2{font-size:clamp(1.4rem,3vw,2rem);margin:1.2em 0 .4em}
h3{font-size:clamp(1.1rem,2.2vw,1.4rem);margin:1em 0 .3em}
p{margin:.6em 0}
.container{max-width:var(--max-w);margin-inline:auto;padding-inline:var(--space);padding-block:var(--space-lg)}
.flow > * + *{margin-top:var(--space)}
.grid{display:grid;gap:var(--space)}
.cols-1{grid-template-columns:1fr}
@media (min-width: 768px){ .md\:cols-2{grid-template-columns:repeat(2,1fr)} }
@media (min-width:1024px){ .lg\:cols-3{grid-template-columns:repeat(3,1fr)} }

/* Images & Media */
img,svg,canvas,video{max-width:100%;height:auto}
picture,figure{display:block;margin:0}
.media{margin-block:var(--space-lg)}
.video{position:relative;padding-top:56.25%}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Tables */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #eee;border-radius:10px}
.table-wrap table{width:100%;border-collapse:collapse}

/* Header/Nav - Bootstrap-kompatibel */
/* Header/Nav-Regeln entfernt, da Bootstrap 5 diese bereits abdeckt */

/* Utilities */
.hide-on-mobile{display:none}
@media (min-width:769px){ .hide-on-mobile{display:initial} }
.full-bleed{width:100vw;margin-left:50%;transform:translateX(-50%)}

/* Responsive Fixes für bestehende Layouts */
/* Entschärfe feste Breiten - ohne !important um Bootstrap nicht zu überschreiben */
[style*="width:"] {
  max-width: 100%;
}

/* Responsive Container */
.container-fluid {
  width: 100%;
  max-width: 100%;
  padding-left: var(--space);
  padding-right: var(--space);
}

/* Responsive Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--space) * -0.5);
  margin-right: calc(var(--space) * -0.5);
}

.col {
  flex: 1 0 0%;
  padding-left: calc(var(--space) * 0.5);
  padding-right: calc(var(--space) * 0.5);
}

@media (min-width: 576px) {
  .col-sm { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 768px) {
  .col-md { flex: 0 0 auto; width: 33.333333%; }
}

@media (min-width: 992px) {
  .col-lg { flex: 0 0 auto; width: 25%; }
}

/* Responsive Typography */
@media (max-width: 767px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  .lead { font-size: 1.1rem; }
}

/* Responsive Spacing */
@media (max-width: 767px) {
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
  .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* Responsive Cards */
.card {
  margin-bottom: var(--space);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
  .card-columns {
    column-count: 1 !important;
  }
}

/* Responsive Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 767px) {
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .btn-group .btn {
    width: auto;
  }
}

/* Responsive Forms */
.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .form-row {
    flex-direction: column;
  }
  .form-row .col {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Responsive Navigation - Bootstrap-kompatibel */
/* Navigation-Regeln entfernt, da Bootstrap 5 diese bereits abdeckt */

/* Responsive Tables */
@media (max-width: 767px) {
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    min-width: 600px;
  }
}

/* Responsive Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-thumbnail {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  max-width: 100%;
  height: auto;
}

/* Responsive Embeds */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  display: block;
  content: "";
}

.embed-responsive-16by9::before {
  padding-top: 56.25%;
}

.embed-responsive-item {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .container {
    max-width: none;
    width: 100%;
  }
  
  .col {
    width: 100% !important;
  }
}

html{line-height:1.5}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;color:#111;background:#fff}
:root{
  --max-w: 1200px;
  --space: clamp(0.75rem, 1.2vw, 1.25rem);
  --space-lg: clamp(1rem, 2vw, 2rem);
  --radius: 14px;
}
h1{font-size:clamp(1.8rem,4.5vw,3rem);margin:0 0 .5em}
h2{font-size:clamp(1.4rem,3vw,2rem);margin:1.2em 0 .4em}
h3{font-size:clamp(1.1rem,2.2vw,1.4rem);margin:1em 0 .3em}
p{margin:.6em 0}
.container{max-width:var(--max-w);margin-inline:auto;padding-inline:var(--space);padding-block:var(--space-lg)}
.flow > * + *{margin-top:var(--space)}
.grid{display:grid;gap:var(--space)}
.cols-1{grid-template-columns:1fr}
@media (min-width: 768px){ .md\:cols-2{grid-template-columns:repeat(2,1fr)} }
@media (min-width:1024px){ .lg\:cols-3{grid-template-columns:repeat(3,1fr)} }

/* Images & Media */
img,svg,canvas,video{max-width:100%;height:auto}
picture,figure{display:block;margin:0}
.media{margin-block:var(--space-lg)}
.video{position:relative;padding-top:56.25%}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Tables */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #eee;border-radius:10px}
.table-wrap table{width:100%;border-collapse:collapse}

/* Header/Nav - Bootstrap-kompatibel */
/* Header/Nav-Regeln entfernt, da Bootstrap 5 diese bereits abdeckt */

/* Utilities */
.hide-on-mobile{display:none}
@media (min-width:769px){ .hide-on-mobile{display:initial} }
.full-bleed{width:100vw;margin-left:50%;transform:translateX(-50%)}

/* Responsive Fixes für bestehende Layouts */
/* Entschärfe feste Breiten - ohne !important um Bootstrap nicht zu überschreiben */
[style*="width:"] {
  max-width: 100%;
}

/* Responsive Container */
.container-fluid {
  width: 100%;
  max-width: 100%;
  padding-left: var(--space);
  padding-right: var(--space);
}

/* Responsive Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--space) * -0.5);
  margin-right: calc(var(--space) * -0.5);
}

.col {
  flex: 1 0 0%;
  padding-left: calc(var(--space) * 0.5);
  padding-right: calc(var(--space) * 0.5);
}

@media (min-width: 576px) {
  .col-sm { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 768px) {
  .col-md { flex: 0 0 auto; width: 33.333333%; }
}

@media (min-width: 992px) {
  .col-lg { flex: 0 0 auto; width: 25%; }
}

/* Responsive Typography */
@media (max-width: 767px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }
  .lead { font-size: 1.1rem; }
}

/* Responsive Spacing */
@media (max-width: 767px) {
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
  .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* Responsive Cards */
.card {
  margin-bottom: var(--space);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
  .card-columns {
    column-count: 1 !important;
  }
}

/* Responsive Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (max-width: 767px) {
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .btn-group .btn {
    width: auto;
  }
}

/* Responsive Forms */
.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .form-row {
    flex-direction: column;
  }
  .form-row .col {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Responsive Navigation - Bootstrap-kompatibel */
/* Navigation-Regeln entfernt, da Bootstrap 5 diese bereits abdeckt */

/* Responsive Tables */
@media (max-width: 767px) {
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    min-width: 600px;
  }
}

/* Responsive Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-thumbnail {
  padding: 0.25rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  max-width: 100%;
  height: auto;
}

/* Responsive Embeds */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  display: block;
  content: "";
}

.embed-responsive-16by9::before {
  padding-top: 56.25%;
}

.embed-responsive-item {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .container {
    max-width: none;
    width: 100%;
  }
  
  .col {
    width: 100% !important;
  }
}

