
/* =========================================================
   DESIGN SYSTEM + DARK MODE + GRID + PERFORMANCE
========================================================= */
:root {
  --primary:#0b2545;
  --primary-soft:#102f5e;
  --accent:#ff7a18;

  --bg-page:#f4f6f9;
  --bg-card:#ffffff;

  --text-main:#222;
  --text-muted:#6b7280;

  --radius-sm:8px;
  --radius-md:12px;

  --shadow-sm:0 4px 10px rgba(15,23,42,.06);
  --shadow-md:0 8px 24px rgba(15,23,42,.12);

  --max-width:1150px;
}

/* =========================
   DARK MODE
========================= */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page:#0f172a;
    --bg-card:#111827;
    --text-main:#e5e7eb;
    --text-muted:#9ca3af;
    --shadow-sm:0 4px 10px rgba(0,0,0,.6);
    --shadow-md:0 8px 24px rgba(0,0,0,.8);
  }

  body { background: var(--bg-page); }
}

/* =========================
   BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
}

h1 { font-size: 2rem; line-height: 1.3; }
h2 { font-size: 1.4rem; margin-top: 1.6rem; }
h3 { font-size: 1.15rem; }

p, li { color: var(--text-muted); }

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover { color: var(--accent); }

/* =========================
   LAYOUT
========================= */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}
summary.bold {
  font-weight: bold;
}
.arrow {
  font-size: 2.5em;
}

/* =========================
   PROFILE IMAGE + TEXT
========================= */
.profil-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 12px;
}
.profil-text {
  flex: 1;
}

.profil-text h1 {
  margin-top: 0;
}

.profil-text h2 {
  margin-top: 6px;
}

.profil-text .cta-btn {
  margin-top: 8px;
  margin-bottom: 8px;
  display: inline-block;
}

.profil-text p {
  margin-top: 0;
}



.branding {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.logo-img {
  height: 40px;
}

#img_cbueche {
  width: 200px;
  height: auto;
  border-radius: 8px;
}

/* Mobil-Ansicht */
@media (max-width: 520px) {
  .profil-container {
    flex-direction: column;
  }

  #img_cbueche {
    width: 100%;
    max-width: 200px;
  }
}

/* =========================
   HEADER / NAV
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  padding: 6px 4px;
  margin-left: 18px;
  position: relative;
}

nav a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0;
  height:2px;
  background:var(--accent);
  transition:width .25s;
}

nav a:hover::after { width:100%; }

/* =========================
   GRID SYSTEM
========================= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =========================
   CARDS / KPI
========================= */
.card,
.kpi {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover,
.kpi:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* =========================
   BUTTONS
========================= */
.button,
.cta-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  transition: background .2s, transform .2s;
}

.button:hover,
.cta-btn:hover {
  background: var(--primary-soft);
  transform: translateY(-2px);
}
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.toggle-btn .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}
.gradient-blue {
  background: linear-gradient(45deg, #36D1DC, #5B86E5);
}
.toggle-btn.gradient-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.gradient-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.toggle-btn.open .arrow {
  transform: rotate(180deg);
}

.toggle-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
/* =========================
   FORMS
========================= */
input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #ccc;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,122,24,.25);
}

/* =========================
   ACCESSIBILITY
========================= */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* =========================
   UTILITIES
========================= */
.centered { text-align: center; }
.mt-md { margin: 18px 0; }
.hidden {max-height: 0;overflow: hidden;}
/* =========================
   RESPONSIVE
========================= */
@media (max-width:900px) {
  section { padding: 32px 16px; }
  nav { flex-direction: column; align-items: flex-start; }
  nav a { margin: 6px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
/* =========================
   MOBILE LINK FEEDBACK
========================= */
@media (hover: none) and (pointer: coarse) {

  nav a:active,
  nav a:focus-visible,
  #mobileNav a:active,
  #mobileNav a:focus-visible,

  main a:active,
  main a:focus-visible,

  footer a:active,
  footer a:focus-visible,
  #impressum a:active,
  #impressum a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
details.accordion {
  margin: 16px 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
}

details.accordion summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
}

details.accordion summary::-webkit-details-marker {
  display: none;
}

details.accordion summary::after {
  content: "▼";
  float: right;
  transition: transform .2s ease;
}

details.accordion[open] summary::after {
  transform: rotate(180deg);
}

details.accordion section {
  padding: 16px 20px;
  border-top: 1px solid #eef2ff;
}
/* =========================
   TOGGLE FIX (FINAL)
========================= */
.toggle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.toggle-content.expanded {
  max-height: 5000px;
}
