
/* ============================================
   CSS nach OZ-Prinzip – Final mit allem drin
   Projekt: kunstsachverstaendige.de
   Autor: Kai (für SirPW)
   ============================================ */

/* 000 – Basis-Setup & Variablen */
:root {
  --gruen: #d2f5d2;
  --dunkelgruen: #003d2b;
  --orange: #cc7722;
  --hellblau: #e0f0ff;
  --rosé: #f9c6d2;
  --creme: #fef6e4;
  --weiß: #ffffff;
  --bg-bild: url("/kvh/images/bg.jpg");
}

/* 000.2 – Body-Grundlayout */
body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  background: var(--bg-bild) no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: -1;
}

a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: var(--orange);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}

/* 001 – Container */
.container {
  display: grid;
  grid-template-areas:
    "header"
    "subheader"
    "main"
    "footer";
  grid-template-rows: auto auto 1fr auto;
  max-width: 1200px;
  width: 100%;
  min-height: 100vh;
  gap: 10px;
  margin: 0 auto;
}


header {
  grid-area: header;
  position: sticky;
  top: 0;
  width: 100%;
  text-align: center;
  color: var(--weiß);
  background: rgba(0, 0, 0, 0.05); /* fast transparent, optional */
  backdrop-filter: blur(2px); /* weicher Schleier */
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* leichte Abhebung */
  z-index: 1000;
  padding: 1.5rem 1rem;
}

/* 015 – Subheader (scrollt mit!) */
.subheader {
  grid-area: subheader;
  position: relative; /* war: sticky */
  top: unset;
  z-index: 1;
  background-color: transparent;
  text-align: center;
  color: var(--orange);
  font-style: italic;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 165, 0, 0.2);
}



/* 020 – Hauptbereich */
main {
  grid-area: main;
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 0.9fr 1.3fr;
  grid-template-rows: repeat(3, auto);
  gap: 10px;
  width: 100%;
  height: auto;
  background-color: var(--weiß);
  padding: 10px;
  box-sizing: border-box;
}

main > div {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
}

.text { background-color: transparent; }

.bild img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

.text1 { color: var(--orange); }
.text2 { color: #555; }
.text3 { color: var(--orange); }

.bild1 { grid-column: 1 / 2; grid-row: 1 / 2; }
.leer1 { grid-column: 2 / 3; grid-row: 1 / 2; }
.text1 { grid-column: 3 / 4; grid-row: 1 / 2; }
.text2 { grid-column: 1 / 4; grid-row: 2 / 3; height: 100%; }
.text3 { grid-column: 1 / 2; grid-row: 3 / 4; }
.bild2 { grid-column: 3 / 4; grid-row: 3 / 4; }

/* Sidebar */
.sidebar {
  background-color: var(--weiß);
  font-size: 0.9em;
  font-weight: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-column: 4 / 5;
  grid-row: 1 / 4;
  padding: 20px 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
  width: 100%;
  align-items: stretch;
  padding-left: 1rem;
  box-sizing: border-box;
}

.sidebar .spacer {
  flex-grow: 1;
}

.sidebar .button {
  background-color: var(--dunkelgruen);
  color: var(--weiß);
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

.button-inline {
  background-color: var(--dunkelgruen);
  color: var(--orange);
  font-weight: bold;
  font-size: 1em;
  line-height: 1.4;
  padding: 10px 20px;
  margin: 10px 0;
  display: inline-block;
  border: none;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.sidebar .info .button-inline {
  background-color: var(--dunkelgruen);
  color: var(--weiß);
}

.sidebar .info .button-inline:link,
.sidebar .info .button-inline:visited,
.sidebar .info .button-inline:hover,
.sidebar .info .button-inline:active,
.sidebar .info .button-inline:focus {
  color: var(--weiß);
  text-decoration: none;
}

.info-box {
  border-left: 4px solid #c19d00;
  background-color: var(--weiß);
  padding: 0 1rem;
  margin-top: 1rem;
  color: #003322;
  font-size: 0.95rem;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
}

/* Footer */
.footer-links {
  text-align: center;
  color: var(--orange);
  font-weight: bold;
  margin-bottom: 5px;
}

.footer-links a {
  color: var(--orange);
  text-decoration: none;
  margin: 0 8px;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-note {
  text-align: center;
  font-size: 0.85em;
  color: var(--orange);
}

/* Blinkerpunkt */
.blink {
  height: 12px;
  width: 12px;
  background-color: var(--orange);
  border-radius: 50%;
  display: inline-block;
  animation: blinker 1.2s linear infinite;
}
@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    grid-template-rows: auto auto auto auto;
    padding: 0 10px;
  }

  main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .sidebar {
    order: 99;
    width: 100%;
    margin-top: 20px;
    box-shadow: none;
  }

  .bild img {
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  body {
    font-size: 15px;
  }

  .sidebar .button,
  .sidebar .info .button-inline {
    font-size: 1em;
    padding: 12px 16px;
  }

  footer {
    position: static;
  }
}


/* Bildverkleinerung feinjustiert */
@media (max-width: 768px) {
  .bild img {
    max-width: 60% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .bild img {
    max-width: 50% !important;
  }
}
