/* ============================================
   CSS nach OZ-Prinzip – Final mit allen Fixes
   Projekt: kunstsachverstaendige.de
   ============================================ */

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

/* Weiches Scrollen bei Anker-Links */
html {
  scroll-behavior: smooth;
}

/* 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;
}

/* 010 – Header */
header {
  grid-area: header;
  position: relative;
  width: 100%;
  text-align: center;
  color: var(--weiß);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 1.5rem 1rem 0.5rem 1rem;
  z-index: 10;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: var(--weiß);
}

header p {
  margin: 0.2rem 0 0 0;
  color: rgba(255, 255, 255, 0.9);
}

/* 015 – Subheader */
.subheader {
  grid-area: subheader;
  position: relative;
  top: unset;
  z-index: 1;
  background-color: transparent;
  text-align: center;
  color: var(--orange);
  font-style: italic;
  padding: 0.5rem 1rem 1rem 1rem;
  border-bottom: none;
}

.subheader h2 {
  font-size: 1.3rem;
  margin: 0;
}

/* 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: 15px;
  box-sizing: border-box;
  border-radius: 4px;
}

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,
.img-responsive {
  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; }

/* 021.2 – Leistungsspektrum (4-Karten-Raster) */
.services-block {
  grid-column: 1 / 4;
  grid-row: 2 / 3;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  width: 100%;
  padding: 10px 0;
  box-sizing: border-box;
}

.services-block .section-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  font-weight: bold;
  display: block;
  margin-bottom: 0.2rem;
}

.services-block h3.services-title {
  font-size: 1.3em;
  color: #003322;
  margin: 0 0 1rem 0;
  font-weight: bold;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.service-card {
  background-color: var(--weiß);
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.service-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.card-icon {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.card-icon svg {
  stroke: var(--dunkelgruen);
}

.service-card h4 {
  font-size: 0.95em;
  margin: 0 0 0.35rem 0;
  color: #003322;
  font-weight: bold;
}

.service-card p {
  color: #555555;
  font-size: 0.85em;
  line-height: 1.4;
  font-weight: normal;
  margin: 0;
}

/* 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;
}

.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;
}

/* Styling für das Künstler-Archiv in der Sidebar */
.archiv-box h3 {
  margin: 0.8rem 0 0.4rem 0;
  font-size: 1.05em;
  color: #003322;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 0.3rem;
}

.archiv-liste {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 1rem 0;
}

.archiv-liste li {
  margin-bottom: 0.4rem;
  font-size: 0.9em;
}

.archiv-liste a {
  color: var(--dunkelgruen);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}

.archiv-liste a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* Footer */
footer {
  grid-area: footer;
  padding: 1.5rem 0;
}

.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);
}

/* 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;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  body {
    font-size: 15px;
  }

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

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