/* ==========================================================================
   PLF – Planungsbüro Landschaft + Freiraum
   Statische Version (Nachbau des Enfold-Layouts von www.plf.de)
   ========================================================================== */

/* ---------- Schriften (Myriad Pro, wie auf der bisherigen Website) ---------- */
@font-face {
  font-family: "myriadpro";
  src: url("../fonts/myriadpro-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "myriadpro";
  src: url("../fonts/myriadpro-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "myriadpro";
  src: url("../fonts/myriadpro-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variablen ---------- */
:root {
  --green: #005a4b;
  --green-light: #669c93;
  --grey-text: #737373;
  --text: #444444;
  --black: #000000;
  --footer-bg: #e5e5e5;
  --container: 1310px;
  --gutter: 50px;
  --font: "myriadpro", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 30px;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  -webkit-hyphens: auto;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a { color: var(--green); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--green);
  margin: 0 0 10px;
}
h1 { font-size: 35px; line-height: 40px; font-weight: 600; letter-spacing: 1px; }
h2 { font-size: 25px; line-height: 30px; font-weight: 600; letter-spacing: 1px; }
h3 { font-size: 20px; line-height: 26px; font-weight: 600; }
h4 { font-size: 15px; line-height: 21px; font-weight: 600; margin-bottom: 4px; }
h5 { font-size: 15px; line-height: 21px; font-weight: 600; margin: 25px 0 4px; }

p { margin: 12.75px 0; color: var(--black); }

strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: #ffffff;
  position: relative;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 135px;
  padding-top: 18px;
  padding-bottom: 14px;
}

.logo { flex: 0 0 auto; }
.logo img { width: 206px; height: auto; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.kopf-header {
  color: var(--grey-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2.2px;
  line-height: 26px;
}
.kopf-subber {
  color: var(--grey-text);
  font-size: 16.5px;
  letter-spacing: 0.825px;
  line-height: 24.75px;
  margin-right: 4px;
}

/* Hauptnavigation */
.main-nav { margin-top: 10px; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}
.main-nav a {
  display: block;
  color: var(--green);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.38px;
  line-height: 40px;
  height: 40px;
  padding: 0 13px;
  border-radius: 25px;
  transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover,
.main-nav a:focus { text-decoration: none; background: rgba(0, 90, 75, 0.08); }
.main-nav a[aria-current="page"] {
  background: var(--green);
  color: #ffffff;
}

/* Burger (nur mobil sichtbar) */
.burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  color: var(--green);
}
.burger-box {
  display: block;
  position: relative;
  width: 40px;
  height: 24px;
}
.burger-inner,
.burger-inner::before,
.burger-inner::after {
  position: absolute;
  left: 0;
  width: 40px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}
.burger-inner { top: 50%; margin-top: -1.5px; }
.burger-inner::before { content: ""; top: -10px; }
.burger-inner::after  { content: ""; top: 10px; }
.burger[aria-expanded="true"] .burger-inner { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-inner::before { top: 0; opacity: 0; }
.burger[aria-expanded="true"] .burger-inner::after  { top: 0; transform: rotate(-90deg); }

/* Mobiles Menü (Overlay) */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 90, 75, 0.97);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.mobile-menu a {
  display: block;
  color: #ffffff;
  font-size: 26px;
  font-weight: 300;
  line-height: 60px;
}
.mobile-menu a[aria-current="page"] { font-weight: 600; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { z-index: 60; }
body.menu-open .burger { color: #ffffff; position: relative; z-index: 70; }

/* ==========================================================================
   Parallax-Sektionen (Hero-Karte, Kontakt-Banner)
   ========================================================================== */
.parallax {
  position: relative;
  overflow: hidden;
  background-color: #b9d3a6;
}
.parallax-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  height: 130%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  will-change: transform;
}
.parallax-content { position: relative; z-index: 1; }

.hero { height: 650px; }
.hero .parallax-bg { background-image: url("../images/landkarte.jpg"); }

/* ==========================================================================
   Startseite: Kacheln
   ========================================================================== */
.tiles {
  display: flex;
  gap: 2%;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}
.tile {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: #ffffff;
  background: var(--green);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .8s ease, transform .8s ease;
}
.tile--light { background: var(--green-light); }
.tile h3 {
  color: #ffffff;
  font-size: 27px;
  line-height: 29.7px;
  font-weight: 300;
  margin: 0;
}
.tile.is-visible { opacity: 1; transform: none; }
.tile:nth-child(2) { transition-delay: .15s; }
.tile:nth-child(3) { transition-delay: .3s; }

/* Hinweis-Textblock */
.notice {
  padding-top: 38px;
  padding-bottom: 40px;
}
.notice .textblock { font-size: 20px; }
.notice h2 { margin-bottom: 10px; }
.notice p { font-size: 20px; line-height: 40px; margin: 17px 0; }

/* ==========================================================================
   Kontakt-Banner
   ========================================================================== */
.contact-banner { height: 300px; }
.contact-banner .parallax-bg { background-image: url("../images/kontakt-banner.jpg"); }
.contact-banner .parallax-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}
.contact-banner h2.banner-title {
  color: #ffffff;
  font-size: 35px;
  line-height: 35px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0 0 10px;
}
.contact-banner .banner-sub {
  color: #ffffff;
  font-size: 27px;
  line-height: 29.7px;
  font-weight: 300;
  margin: 0;
}
.button {
  display: inline-block;
  min-width: 200px;
  padding: 10px 20px;
  border-radius: 35px;
  background: var(--green);
  color: #ffffff;
  font-size: 25px;
  font-weight: 300;
  line-height: 31px;
  text-align: center;
  transition: background-color .2s ease;
}
.button:hover, .button:focus { background: #00473b; text-decoration: none; }
.contact-banner .button { margin-top: 50px; }

.spacer-after-banner { height: 101px; }

/* ==========================================================================
   Unterseiten (Kontakt, Impressum, Datenschutz)
   ========================================================================== */
.page-content {
  padding-top: 70px;
  padding-bottom: 70px;
  max-width: var(--container);
}
.page-content .inner { max-width: 1210px; }
.page-content h1 { font-size: 35px; line-height: 40px; margin-bottom: 20px; }
.page-content h4 { margin-top: 30px; }
.page-content h4:first-of-type { margin-top: 0; }
.legal p { word-wrap: break-word; overflow-wrap: anywhere; }
.legal h4 { margin-top: 30px; }

/* Kontaktseite */
.contact-person h2 { margin-bottom: 10px; }
.contact-person h4 { margin-top: 0; }
.contact-person p { margin-top: 30px; }
.contact-office { margin-top: 50px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--black);
  padding: 15px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 6%;
  padding-top: 30px;
  padding-bottom: 20px;
}
.footer-col p { color: var(--black); }
.footer-col strong { color: var(--green); text-transform: uppercase; }
.footer-col a { font-weight: 600; }
.footer-img { width: 160px; height: 160px; margin-bottom: 4px; }
.footer-text-1 { margin-top: 4px; }
.footer-col--legal p { margin-top: 0; }
.footer-col--legal a { text-transform: uppercase; }
.footer-col--legal a + a { margin-left: 1.2em; }
.footer-col--office { padding-top: 135px; }
.footer-col--legal  { padding-top: 135px; }

.socket {
  background: #ffffff;
  color: var(--black);
  font-size: 11px;
  line-height: 30px;
  padding: 0;
}
.socket a { color: #719430; }

/* Nach-oben-Button */
.scroll-top {
  position: fixed;
  right: 50px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background-color .2s;
  z-index: 30;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: rgba(0, 0, 0, 0.3); text-decoration: none; }
.scroll-top svg { width: 16px; height: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 989px) {
  .kopf-header { font-size: 19px; letter-spacing: 1.6px; }
  .kopf-subber { font-size: 15px; }
  .hero { height: 480px; }
  .tile h3 { font-size: 23px; }
}

@media (max-width: 767px) {
  :root { --gutter: 25px; }

  .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 10px;
  }
  .header-right { display: contents; }
  .header-meta {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
  }
  .kopf-header { font-size: 22px; letter-spacing: 2.2px; line-height: 26px; }
  .kopf-subber { font-size: 16.5px; margin-right: 0; }
  .logo img { width: 175px; }
  .main-nav { display: none; }
  .burger { display: block; }

  .hero { height: 420px; }

  .tiles {
    flex-direction: column;
    gap: 30px;
    margin-top: -40px;
  }
  .tile { padding: 70px 20px; }
  .tile h3 { font-size: 27px; }

  .notice p { font-size: 20px; line-height: 40px; }

  .contact-banner { height: 340px; }
  .contact-banner h2.banner-title { font-size: 30px; }
  .contact-banner .banner-sub { font-size: 22px; line-height: 28px; padding: 0 10px; }
  .contact-banner .button { margin-top: 35px; }
  .spacer-after-banner { height: 50px; }

  .page-content { padding-top: 40px; padding-bottom: 50px; }
  .page-content h1 { font-size: 28px; line-height: 34px; }

  .footer-grid { grid-template-columns: 1fr; gap: 10px; }
  .footer-col--office,
  .footer-col--legal { padding-top: 0; }
  .scroll-top { right: 20px; bottom: 20px; }
}

@media (max-width: 400px) {
  .kopf-header { font-size: 19px; letter-spacing: 1.8px; }
  .kopf-subber { font-size: 15px; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  .tile { opacity: 1; transform: none; transition: none; }
  .parallax-bg { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* Druck */
@media print {
  .site-header .main-nav, .burger, .mobile-menu, .scroll-top, .parallax { display: none !important; }
  .tile { opacity: 1; transform: none; }
}
