/* =========================================================
   PLANHOLZ – RESPONSIVES STYLESHEET
   Passend zum zuvor neu aufgebauten HTML-Code
   ========================================================= */


/* =========================================================
   VARIABLEN
   ========================================================= */

:root {
  --brown: #5a3e2b;
  --light: #f7f3ef;
  --white: #ffffff;
  --accent: #d2a679;
  --accent-dark: #b9895d;
  --dark: #2b2b2b;
  --grey: #6d6863;
  --header-background: #d6c6b8;
  --border: #ded6cf;

  --header-height: 72px;
  --content-width: 1200px;

  --radius-small: 5px;
  --radius-medium: 10px;

  --shadow-small:
    0 4px 12px rgba(0, 0, 0, 0.08);

  --shadow-medium:
    0 10px 28px rgba(0, 0, 0, 0.13);
}


/* =========================================================
   GRUNDEINSTELLUNGEN
   ========================================================= */

*,
*::before,
*::after {
  margin: 20;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}


body {
  min-width: 320px;

  background-color: var(--light);
  color: var(--dark);

  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;

  overflow-x: hidden;
}


body.menu-open {
  overflow: hidden;
}


img {
  display: block;

  max-width: 100%;
  height: auto;
}


button,
input,
textarea {
  font: inherit;
}


button {
  cursor: pointer;
}


a {
  color: inherit;
}


h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}


h2 {
  margin-bottom: 18px;

  font-size: clamp(5vw, 2.8rem);
  line-height: 1.2;
  text-align: center;
}


h3 {
  margin-bottom: 12px;

  font-size: clamp(1.25rem, 3vw, 1.45rem);
  line-height: 1.3;
}

h8 {
	color: white; 

}


/* =========================================================
   HEADER – MOBILE FIRST
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  height: var(--header-height);
  padding: 0 12px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  background-color: var(--header-background);

  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.08);
}


.logo-link {
  min-width: 0;
  height: 100%;

  display: flex;
  align-items: center;

  text-decoration: none;
}


.header-logo {
  width: clamp(135px, 42vw, 175px);
  max-width: 100%;
  max-height: calc(var(--header-height) - 8px);

  object-fit: contain;
  object-position: left center;
}


/* Mittlerer Schriftzug auf Handy ausblenden */

.header-title {
  display: none;
}


/* Desktop-Navigation auf Handy ausblenden */

.desktop-nav {
  display: none;
}


/* Hamburger-Menü */

.hamburger {
  width: 44px;
  height: 44px;
  padding: 8px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border: 0;

  background: transparent;
}


.hamburger span {
  width: 27px;
  height: 3px;
  margin: 3px 0;

  display: block;

  border-radius: 20px;

  background-color: var(--white);

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}


.hamburger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}


.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}


.hamburger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 999;

  width: 100%;
  max-height: 0;
  padding: 0 16px;

  display: flex;
  flex-direction: column;

  overflow: hidden;
  visibility: hidden;
  opacity: 0;

  background-color: var(--brown);

  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.18);

  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    visibility 0.3s ease,
    opacity 0.3s ease;
}


.mobile-nav.is-open {
  max-height: 400px;
  padding: 12px 16px 18px;

  visibility: visible;
  opacity: 1;
}


.mobile-nav a {
  width: 100%;
  padding: 13px 10px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.2);

  color: var(--white);

  text-align: center;
  text-decoration: none;
}


.mobile-nav a:last-child {
  border-bottom: 0;
}


/* =========================================================
   HERO – MOBILE FIRST
   ========================================================= */

.hero {
  width: 100%;
  min-height: 540px;
  padding:
    clamp(24px, 6vh, 48px)
    16px
    36px;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.52),
      rgba(0, 0, 0, 0.52)
    ),
    url("bilder/hero.png");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  color: var(--white);

  text-align: center;
}


.hero-content {
  width: min(100%, 780px);
}


.hero h1 {
  margin-bottom: 0;

  font-size: clamp(1.75rem, 8vw, 2.4rem);
  line-height: 1.12;

  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.65);
}


.hero-subtitle {
  max-width: 420px;
  margin:
    14px
    auto
    24px;

  font-size: clamp(1rem, 4vw, 1.15rem);
  line-height: 1.5;

  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.7);
}


.hero-button {
  display: inline-flex;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  min-height: 46px;
  padding: 11px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: var(--radius-small);

  background-color: var(--accent);
  color: var(--white);

  font-weight: 700;
  line-height: 1;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}


.btn:hover,
.btn:focus-visible {
  background-color: var(--accent-dark);

  transform: translateY(-2px);
}


/* =========================================================
   ALLGEMEINE ABSCHNITTE
   ========================================================= */

.content-section {
  width: 100%;
  padding:
    55px
    16px;
}


.section-light {
  background-color: #eee7e0;
}


.section-container {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}


.section-intro {
  max-width: 760px;
  margin: 0 auto 34px;

  color: var(--grey);

  font-size: 1rem;
  text-align: center;
}


/* =========================================================
   LEISTUNGEN – HANDY 1 SPALTE
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}


.card {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-medium);

  background-color: var(--white);

  box-shadow: var(--shadow-small);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}


.card:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-medium);
}


.card-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;

  overflow: hidden;

  background-color: #e6ded6;
}


.card-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.35s ease;
}


.card:hover .card-image {
  transform: scale(1.035);
}


.card-content {
  flex: 1;

  padding: 20px;
}


.card-content p {
  margin-bottom: 14px;
}


.card-content p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   ÜBER MICH – HANDY UNTEREINANDER
   ========================================================= */

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}


.about-text {
  min-width: 0;

  font-size: 1rem;
}


.about-text p {
  margin-bottom: 18px;
}


.about-highlight {
  padding: 18px;

  border-left: 4px solid var(--accent);

  background-color:
    rgba(210, 166, 121, 0.18);

  font-weight: 700;
}


.about-image-wrapper {
  width: min(100%, 360px);
  margin: 0 auto;
}


.about-image {
  width: 100%;

  border-radius: var(--radius-medium);

  box-shadow: var(--shadow-small);

  object-fit: cover;
}


/* =========================================================
   GALERIE – HANDY 1 BILD PRO REIHE
   ========================================================= */

.slider {
  position: relative;

  width: 100%;
  margin: 30px auto 0;

  overflow: hidden;
}


.slides {
  display: flex;

  transition:
    transform 0.45s ease-in-out;
}


.slide {
  min-width: 100%;

  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}


.gallery-item {
  width: 100%;
  margin: 0;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  background-color: var(--white);

  box-shadow: var(--shadow-small);
}


.gallery-item img {
  width: 100%;
  height: clamp(240px, 75vw, 340px);

  object-fit: cover;
}


.gallery-item figcaption {
  padding: 13px 16px;

  font-weight: 700;
  text-align: center;
}


/* Slider-Schaltflächen */

.slider-button {
  position: absolute;
  top: 48%;
  z-index: 5;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background-color:
    rgba(0, 0, 0, 0.48);

  color: var(--white);

  font-size: 1.4rem;

  transform: translateY(-50%);
}


.slider-button:hover,
.slider-button:focus-visible {
  background-color:
    rgba(0, 0, 0, 0.72);
}


.slider-prev {
  left: 8px;
}


.slider-next {
  right: 8px;
}


.slider-dots {
  margin-top: 20px;

  display: flex;
  justify-content: center;
  gap: 9px;
}


.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background-color: #c3bbb3;
}


.slider-dot.is-active {
  background-color: var(--accent-dark);

  transform: scale(1.2);
}


/* =========================================================
   KONTAKT – HANDY UNTEREINANDER
   ========================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}


.contact-form-wrapper,
.contact-details {
  min-width: 0;
}


.contact-form {
  width: 100%;
  padding: 20px;

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  background-color: var(--white);

  box-shadow: var(--shadow-small);
}


.form-group {
  margin-bottom: 18px;
}


.form-group label {
  display: block;

  margin-bottom: 7px;

  font-weight: 700;
}


.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 13px;

  border: 1px solid #bbb3ab;
  border-radius: var(--radius-small);

  background-color: var(--white);
  color: var(--dark);

  outline: none;
}


.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-dark);

  box-shadow:
    0 0 0 3px rgba(210, 166, 121, 0.22);
}


.form-group textarea {
  min-height: 160px;

  resize: vertical;
}


.contact-information {
  margin-bottom: 24px;
}


.contact-information p {
  margin-bottom: 16px;
}


.contact-information a {
  color: var(--brown);

  text-decoration: none;

  overflow-wrap: anywhere;
}


.contact-information a:hover {
  text-decoration: underline;
}


.map-wrapper {
  width: 100%;

  overflow: hidden;

  border-radius: var(--radius-medium);

  box-shadow: var(--shadow-small);
}


.map-wrapper iframe {
  width: 100%;
  height: 320px;

  display: block;

  border: 0;
}


/* =========================================================
   FOOTER LINKS
   ========================================================= */

.footer-links {
  margin-top: 10px;
  background-color: var(--brown);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;

  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links span {
  color: rgba(255,255,255,0.6);
}


/* Handy */

@media (max-width: 480px) {

  .footer-links {
    gap: 8px;
    font-size: 0.9rem;
  }

}


/* =========================================================
   KLEINE TABLETS AB 600 PX
   ========================================================= */

@media (min-width: 600px) {

  :root {
    --header-height: 68px;
  }


  .site-header {
    padding:
      0
      18px;
  }


  .header-logo {
    width: clamp(155px, 28vw, 195px);
  }


  .hero {
    min-height: 610px;

    padding-top:
      clamp(30px, 6vh, 60px);
  }


  .hero h1 {
    font-size:
      clamp(2rem, 6vw, 2.8rem);
  }


  .services-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .slide {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .gallery-item img {
    height: 250px;
  }


  .contact-form {
    padding: 28px;
  }

}


/* =========================================================
   TABLETS AB 768 PX
   ========================================================= */

@media (min-width: 768px) {

  .content-section {
    padding:
      70px
      24px;
  }


  .section-intro {
    margin-bottom: 42px;

    font-size: 1.06rem;
  }


  .about-layout {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(240px, 320px);

    align-items: start;

    gap: 45px;
  }


  .about-image-wrapper {
    width: 100%;
    margin: 0;
  }


  .contact-layout {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(300px, 1fr);

    align-items: start;
  }


  .map-wrapper iframe {
    height: 360px;
  }

}


/* =========================================================
   DESKTOP-NAVIGATION AB 1050 PX
   ========================================================= */

@media (min-width: 1050px) {

  :root {
    --header-height: 74px;
  }


  .site-header {
    padding:
      0
      clamp(20px, 2vw, 36px);

    grid-template-columns:
      minmax(190px, 1fr)
      auto
      minmax(360px, 1fr);

    gap: 24px;
  }


  .header-logo {
    width:
      clamp(175px, 12vw, 230px);

    max-height:
      calc(var(--header-height) - 8px);
  }


  .header-title {
    justify-self: center;

    display: block;

    color: var(--white);

    font-size:
      clamp(0.95rem, 1.15vw, 1.25rem);

    font-weight: 700;
    text-align: center;
    white-space: nowrap;
  }


  .desktop-nav {
    justify-self: end;

    display: flex;
    align-items: center;
    gap:
      clamp(14px, 1.5vw, 28px);
  }


  .desktop-nav a {
    position: relative;

    color: var(--white);

    font-size: 0.95rem;
    text-decoration: none;
  }


  .desktop-nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 100%;
    height: 2px;

    background-color: var(--accent);

    transform: scaleX(0);
    transform-origin: right;

    transition:
      transform 0.22s ease;
  }


  .desktop-nav a:hover::after,
  .desktop-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }


  .hamburger {
    display: none;
  }


  .mobile-nav {
    display: none;
  }


  .hero {
    min-height:
      clamp(560px, 72vh, 820px);

    padding:
      clamp(38px, 7vh, 90px)
      20px
      50px;

    background-position: center center;
  }


  .hero h1 {
    font-size:
      clamp(2.5rem, 3.2vw, 3.5rem);
  }


  .hero-subtitle {
    max-width: none;

    font-size:
      clamp(1.05rem, 1.4vw, 1.3rem);
  }


  .services-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 25px;
  }


  .slide {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 18px;
  }


  .gallery-item img {
    height: 260px;
  }

}


/* =========================================================
   GROSSE DESKTOPS
   ========================================================= */

@media (min-width: 1400px) {

  .hero {
    min-height: 760px;
  }


  .gallery-item img {
    height: 285px;
  }

}


/* =========================================================
   SEHR KLEINE HANDYS
   ========================================================= */

@media (max-width: 380px) {

  :root {
    --header-height: 62px;
  }


  .site-header {
    padding:
      0
      9px;
  }


  .header-logo {
    width: 128px;
  }


  .hamburger {
    width: 40px;
    height: 40px;
    padding: 6px;
  }


  .hamburger span {
    width: 24px;
  }


  .hero {
    min-height: 510px;

    padding:
      20px
      12px
      30px;
  }


  .hero h1 {
    font-size: 1.62rem;
  }


  .hero-subtitle {
    font-size: 0.95rem;
  }


  .content-section {
    padding:
      50px
      12px;
  }


  .card-content {
    padding: 17px;
  }


  .contact-form {
    padding: 17px;
  }

}


/* =========================================================
   QUERFORMAT AUF KLEINEN GERÄTEN
   ========================================================= */

@media
  (max-height: 500px)
  and
  (orientation: landscape) {

  .hero {
    min-height:
      calc(100vh - var(--header-height));

    padding-top: 20px;
    padding-bottom: 24px;
  }


  .hero h1 {
    font-size:
      clamp(1.6rem, 5vw, 2.2rem);
  }


  .hero-subtitle {
    margin-top: 8px;
    margin-bottom: 16px;
  }

}


/* =========================================================
   REDUZIERTE BEWEGUNG
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

/* =========================================================
   DATENSCHUTZ UND IMPRESSUM
   ========================================================= */

.legal-page {
  padding-top: clamp(45px, 7vw, 80px);
}

.legal-container {
  max-width: 900px;
}

.legal-container > h1 {
  margin-bottom: clamp(35px, 6vw, 60px);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  text-align: center;
}

.legal-section {
  max-width: none;
  margin: 0 0 42px;
  padding: 0;
}

.legal-section h2 {
  margin-bottom: 18px;
  font-size: clamp(4vw, 1.2rem);
  line-height: 1.3;
  text-align: left;
}

.legal-section h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.legal-section p {
  margin-bottom: 16px;
}

.legal-section ul {
  margin-left: 35px;
}

.legal-section li {
  margin-bottom: 10px;
}

.legal-section address {
  margin: 18px 0;
  padding: 20px;
  border-left: 4px solid var(--accent);
  background-color: rgba(210, 166, 121, 0.12);
  font-style: normal;
}

.legal-section a {
  color: var(--brown);
  overflow-wrap: anywhere;
}

.legal-back-link {
  margin-top: 50px;
  text-align: center;
}

.footer-links {
  margin-top: 9px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.footer-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-links span {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 600px) {
  .legal-page {
    padding: 42px 15px;
  }

  .legal-section {
    margin-bottom: 34px;
  }

  .legal-section ul,
  .legal-section ol {
    padding-left: 22px;
  }

  .legal-section address {
    padding: 16px;
  }

  .footer-links {
    font-size: 0.92rem;
  }
}