:root {
  --orange: #f07a12;
  --orange-light: #ffb04c;
  --orange-dark: #7d2b00;
  --brown: #35170a;
  --cream: #fff5e8;
  --paper: rgba(255, 249, 240, 0.94);
  --line: rgba(255, 157, 62, 0.48);
  --shadow: 0 18px 48px rgba(49, 19, 3, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #392015;
  background: linear-gradient(180deg, #fff2df, #fffaf4);
}

a { color: inherit; }

.topbar {
  background: #2c1208;
  color: #fff3df;
  border-bottom: 1px solid rgba(255, 157, 62, 0.45);
}

.topbar-inner {
  width: min(1180px, calc(100% - 30px));
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  text-decoration: none;
  color: #ff9a2e;
  font-size: 1.15rem;
  font-weight: 700;
}

.mini-palace {
  width: 46px;
  height: 32px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff6e8;
  text-decoration: none;
  padding: 20px 0 16px;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: #ff9a2e;
  border-color: #ff7d12;
}

.home-hero {
  background: #ed7411;
  overflow: hidden;
  border-bottom: 4px solid #f58b28;
}

.home-hero img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  max-height: 390px;
}

.content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 58px;
}

.welcome {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.welcome h1,
.page-title,
.card h2,
.subcard h2,
.notice h1 {
  font-family: Georgia, "Times New Roman", serif;
}

.welcome h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 10px;
  color: var(--orange-dark);
}

.welcome p {
  margin: 0;
  color: #795744;
  line-height: 1.6;
}

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

.card {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,236,212,.93));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  background:
    radial-gradient(circle at 80% 20%, #ffb65f, transparent 22%),
    linear-gradient(150deg, transparent 45%, #f57f17);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 25px 60px rgba(49, 19, 3, 0.35);
  outline: none;
}

.icon {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: auto;
  color: white;
  background: linear-gradient(145deg, #ffad42, #df5d00);
  font-size: 2rem;
  box-shadow: 0 9px 24px rgba(130, 46, 0, 0.28);
}

.card h2,
.subcard h2 {
  position: relative;
  z-index: 1;
  margin: 24px 0 8px;
  font-size: 2.2rem;
  color: #4a210d;
}

.card p,
.subcard p {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.55;
  color: #77533f;
}

.page-shell {
  min-height: calc(100vh - 62px);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-shell.private {
  background-image:
    linear-gradient(rgba(33, 10, 1, .38), rgba(33, 10, 1, .62)),
    url("../images/privat-feuer.jpg");
}

.page-shell.school {
  background-image:
    linear-gradient(rgba(91, 34, 0, .30), rgba(74, 22, 0, .54)),
    url("../images/schule-blumen.jpg");
}

.page-shell.cloud {
  background-image:
    linear-gradient(rgba(112, 38, 0, .18), rgba(112, 38, 0, .43)),
    url("../images/cloud-wolken.jpg");
}

.page-content {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 65px 0 80px;
}

.page-heading {
  text-align: center;
  color: white;
  text-shadow: 0 4px 20px rgba(34, 9, 0, .75);
  margin-bottom: 34px;
}

.page-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin: 0 0 8px;
}

.page-heading p {
  font-size: 1.08rem;
  margin: 0;
}

.subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.subcard {
  min-height: 260px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(53, 19, 5, .76);
  border: 1px solid rgba(255, 166, 75, .62);
  box-shadow: var(--shadow);
  color: white;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform .25s ease, background .25s ease;
}

.subcard:hover {
  transform: translateY(-6px);
  background: rgba(71, 25, 6, .88);
}

.subcard h2,
.subcard p { color: white; }

.subcard p { opacity: .86; }

.notice {
  max-width: 760px;
  margin: 0 auto;
  padding: 45px 34px;
  text-align: center;
  border-radius: 26px;
  background: rgba(255, 247, 236, .92);
  border: 1px solid rgba(255, 159, 65, .62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.notice h1 {
  color: var(--orange-dark);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  margin: 0;
}

.notice h2 {
  color: #cf5500;
  margin: 10px 0 20px;
  font-size: 1.65rem;
}

.notice p {
  color: #694633;
  font-size: 1.08rem;
  line-height: 1.7;
}

.construction {
  font-size: 4.5rem;
  margin-top: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  padding: 10px 15px;
  border-radius: 999px;
  color: white;
  background: rgba(49, 15, 2, .62);
  border: 1px solid rgba(255, 180, 94, .50);
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.back-link:hover { background: rgba(49, 15, 2, .85); }

footer {
  padding: 24px 18px;
  background: #2c1208;
  color: #fff3df;
  border-top: 1px solid rgba(255, 157, 62, .40);
}

.footer-inner {
  width: min(1180px, calc(100% - 30px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.footer-inner a:hover { color: #ff9a2e; }

.legal {
  max-width: 850px;
  margin: 40px auto;
  padding: 36px;
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.legal h1, .legal h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--orange-dark);
}

.legal p {
  line-height: 1.65;
  color: #6e5140;
}

@media (max-width: 850px) {
  .main-grid,
  .subgrid { grid-template-columns: 1fr; }

  .topbar-inner {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    gap: 16px;
    width: 100%;
  }

  .main-nav a { padding: 4px 0 8px; }

  .home-hero img {
    min-height: 220px;
    object-fit: cover;
  }

  .page-shell { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* VERSION 6 – sauberes Vollbild, Icons in der Navigation, kompaktere Bereichskarten */
body.home-v6 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: white;
  background:
    linear-gradient(rgba(36, 10, 0, .08), rgba(36, 10, 0, .18)),
    url("../images/startseite-vollbild-clean.png") center top / cover no-repeat;
}

body.home-v6 .home-topbar-v6 {
  position: relative;
  z-index: 10;
  background: #2c1208;
  border-bottom: 1px solid rgba(255, 138, 31, .45);
}

body.home-v6 .topbar-inner {
  min-height: 68px;
}

body.home-v6 .mini-brand {
  color: #ff8a1f;
  white-space: nowrap;
}

.main-nav-v6 {
  margin-left: auto;
  gap: 22px;
}

.main-nav-v6 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.main-nav-v6 .nav-ico {
  font-size: 1rem;
  line-height: 1;
}

.home-v6-stage {
  flex: 1 1 auto;
  width: min(1110px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 126px);
  padding: clamp(530px, 64vh, 650px) 0 18px;
  display: flex;
  align-items: flex-start;
}

.home-v6-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-v6-card {
  position: relative;
  min-height: 150px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #fff8ef;
  border: 1.5px solid rgba(255, 176, 92, .82);
  box-shadow: 0 18px 42px rgba(31, 8, 0, .45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 18px 16px;
  background-color: #5a2509;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform .22s ease, box-shadow .22s ease;
}

.home-v6-card:hover,
.home-v6-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(31, 8, 0, .55);
  outline: none;
}

.home-v6-card .home-v6-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 8, 0, .22), rgba(31, 8, 0, .68));
  z-index: 0;
}

.home-v6-card.card-private {
  background-image: url("../images/privat-feuer.jpg");
}

.home-v6-card.card-school {
  background-image: url("../images/schule-blumen.jpg");
}

.home-v6-card.card-cloud {
  background-image: url("../images/cloud-wolken.jpg");
}

.home-v6-icon,
.home-v6-card h2,
.home-v6-card p {
  position: relative;
  z-index: 1;
}

.home-v6-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border-radius: 50%;
  font-size: 1.15rem;
  background: rgba(28, 10, 3, .68);
  color: #fff3e2;
  border: 1px solid rgba(255, 180, 108, .75);
  box-shadow: 0 6px 16px rgba(23, 6, 0, .35);
}

.home-v6-card h2 {
  margin: 10px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  color: white;
  text-shadow: 0 2px 10px rgba(31, 8, 0, .75);
}

.home-v6-card p {
  margin: 0;
  line-height: 1.4;
  color: #fff2df;
  font-size: .92rem;
  text-shadow: 0 2px 8px rgba(31, 8, 0, .75);
}

body.home-v6 footer {
  flex: 0 0 auto;
  background: rgba(44, 18, 8, .95);
  border-top: 1px solid rgba(255, 138, 31, .45);
}

@media (max-height: 850px) and (min-width: 851px) {
  .home-v6-stage {
    padding-top: clamp(480px, 60vh, 560px);
  }

  .home-v6-card {
    min-height: 135px;
    padding: 16px;
  }

  .home-v6-card h2 {
    font-size: 1.65rem;
  }

  .home-v6-card p {
    font-size: .88rem;
  }
}

@media (max-width: 1000px) {
  .main-nav-v6 {
    gap: 16px;
  }

  .main-nav-v6 a span:last-child {
    font-size: .95rem;
  }

  .home-v6-stage {
    padding-top: 500px;
  }

  .home-v6-grid {
    gap: 18px;
  }
}

@media (max-width: 850px) {
  body.home-v6 {
    background-position: center top;
    background-size: cover;
  }

  body.home-v6 .topbar-inner {
    align-items: center;
    flex-direction: column;
    padding: 10px 0;
  }

  .main-nav-v6 {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-v6-stage {
    min-height: auto;
    padding-top: 360px;
    padding-bottom: 28px;
  }

  .home-v6-grid {
    grid-template-columns: 1fr;
  }

  .home-v6-card {
    min-height: 145px;
  }
}


/* VERSION 7 – Feinschliff der Startseite auf dem finalen Hintergrundbild */
body.home-v6 .topbar-inner {
  width: min(1220px, calc(100% - 28px));
}

.home-v6-stage {
  width: min(1180px, calc(100% - 32px));
  padding-top: clamp(350px, 42vh, 430px);
  padding-bottom: 14px;
}

.home-v6-grid {
  width: min(800px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.home-v6-card {
  min-height: 132px;
  padding: 14px 16px 14px;
  border-radius: 20px;
}

.home-v6-icon {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

.home-v6-card h2 {
  margin: 8px 0 4px;
  font-size: 1.55rem;
}

.home-v6-card p {
  font-size: .85rem;
  line-height: 1.35;
}

body.home-v6 footer {
  padding: 16px 18px;
}

body.home-v6 .footer-inner {
  gap: 20px;
}

@media (max-height: 850px) and (min-width: 851px) {
  .home-v6-stage {
    padding-top: clamp(330px, 40vh, 390px);
  }

  .home-v6-card {
    min-height: 122px;
    padding: 12px 14px;
  }

  .home-v6-card h2 {
    font-size: 1.45rem;
  }

  .home-v6-card p {
    font-size: .82rem;
  }
}

@media (max-width: 1000px) {
  .home-v6-stage {
    padding-top: 340px;
  }

  .home-v6-grid {
    width: min(700px, 100%);
    gap: 16px;
  }

  .home-v6-card {
    min-height: 126px;
  }
}

@media (max-width: 850px) {
  .home-v6-stage {
    padding-top: 300px;
    padding-bottom: 22px;
  }

  .home-v6-grid {
    width: 100%;
  }

  .home-v6-card {
    min-height: 140px;
  }
}
