/* =========================================
   1. VARIABLES & SETTINGS
   ========================================= */
:root {
  /* Layout & Colors */
  --border: 35px;
  --c-bg: #000000;
  --c-text: #ffffff;
  --c-text-muted: #D0D0D0;
  --c-accent-1: #B1CB02; /* Lime */
  --c-accent-2: #4BB05B; /* Green */
  --c-accent-3: #26B8CD; /* Cyan */
  --c-border: #5C5C5C;
  --c-input-bg: #262626;

  /* Gradients & Images */
  --overlay: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65));
  --footer-grad: url('../img/footer-gradient.jpg');
  --footer-grad-webp: url('../img/footer-gradient.webp');

  /* Global Settings */
  font-size: 20px;
  scroll-behavior: smooth;
  interpolate-size: allow-keywords;
}

/* =========================================
   2. VIEW TRANSITIONS & KEYFRAMES
   ========================================= */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: 0.8s cubic-bezier(0.87, 0, 0.13, 1) both move-out; }
::view-transition-new(root) { animation: 0.8s cubic-bezier(0.87, 0, 0.13, 1) both move-in; }

@keyframes move-out {
  from { filter: blur(0px); transform: scale(1); opacity: 1; }
  to   { filter: blur(5px); transform: scale(1); opacity: 0; }
}

@keyframes move-in {
  from { filter: blur(5px); transform: scale(1); opacity: 0; }
  to   { filter: blur(0px); transform: scale(1); opacity: 1; }
}

@keyframes spinning {
  to { transform: rotate(360deg); }
}

@keyframes floatRight {
  0%, 100% { transform: rotateY(10deg) rotateX(0deg); }
  50%      { transform: rotateY(14deg) rotateX(3deg); }
}

@keyframes floatLeft {
  0%, 100% { transform: rotateY(-10deg) rotateX(0deg); }
  50%      { transform: rotateY(-14deg) rotateX(-3deg); }
}

/* =========================================
   3. BASE & TYPOGRAPHY
   ========================================= */
body {
  font-family: 'Mitr', sans-serif;
  font-weight: 200;
  line-height: 1.5;
  letter-spacing: 0.02ch;
  background-color: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden; /* Prevents horizontal scroll */

  /* Default Background Setup */
  background-image: url('../img/start-gradient.jpg'), var(--overlay), var(--footer-grad);
  background-image: url('../img/start-gradient.webp'), var(--overlay), var(--footer-grad-webp);
  background-position: top center, bottom center, bottom center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

/* Page Specific Backgrounds */
body.leistungen { background-image: url('../img/leistungen-gradient.jpg'), var(--overlay), var(--footer-grad); }
body.leistungen { background-image: url('../img/leistungen-gradient.webp'), var(--overlay), var(--footer-grad-webp); }
body.ueber-uns  { background-image: url('../img/uberuns-gradient.jpg'), var(--overlay), var(--footer-grad); }
body.ueber-uns  { background-image: url('../img/uberuns-gradient.webp'), var(--overlay), var(--footer-grad-webp); }
body.kontakt    { background-image: url('../img/kontakt-gradient.jpg'), var(--overlay), var(--footer-grad); }
body.kontakt    { background-image: url('../img/kontakt-gradient.webp'), var(--overlay), var(--footer-grad-webp); }
body.legal      { background-image: none, var(--overlay), var(--footer-grad); }
body.legal      { background-image: none, var(--overlay), var(--footer-grad-webp); }
body.menu-open  { overflow: hidden; }

/* Headings Shared Styles */
h1, h2, h3, h4 {
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
  hyphens: none;
  text-wrap: balance;
}

h1 {
  font-size: 2rem;
  color: var(--c-accent-1);
  width: 32ch;
  line-height: 1.3;
}
h1 span { font-size: 4.5rem; color: var(--c-text); line-height: 1.15; }

.leistungen h1 { width: 26ch; }
.ueber-uns h1 { width: 36ch; }
.kontakt h1 { width: 30ch; }

h2 {
  font-size: 1.5rem;
  color: var(--c-accent-1);
  width: 29ch;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
h2 span { font-size: 2.4rem; color: var(--c-text); line-height: 1.15; }
.two-third h2 { width: 24ch; }

h3 { font-size: 1.5rem; }
.h3-icon { display: flex; align-items: center; padding-bottom: 1.5rem; }
.h3-icon img { padding-right: 2rem; }

h4 {
  color: var(--c-accent-2);
  font-size: 1.4rem;
  padding-bottom: 0.8rem;
}
.h4-line {
  height: 1px;
  width: 100%;
  background-color: var(--c-accent-3);
  margin-bottom: 0.8rem;
}

b, strong { font-weight: 600; }
a { text-decoration: none; color: var(--c-text); }

/* =========================================
   4. LAYOUT UTILITIES
   ========================================= */
.container,
.content-container {
  width: 100%;
  padding-left: var(--border);
  padding-right: var(--border);
  margin-left: auto;
  margin-right: auto;
}
.container { max-width: 1640px; }
.content-container { max-width: 1364px; }

section { margin-bottom: 180px; }
section, [id] { scroll-margin-top: 150px; }

/* Flex & Grid Helpers */
.flex { position: relative; display: flex; align-items: center; width: 100%; }
.align-start { align-items: flex-start; }
.one-third { position: relative; width: 33%; }
.two-third { position: relative; width: 66%; }
.two-third p { padding-bottom: 1rem; }
.pad-left { padding-left: 2rem; }
.pad-right { padding-right: 2rem; }
.content-rows { padding: 1rem 0; }
.right { width: fit-content; margin-left: auto; }

/* Animation Utils */
#fade-in { opacity: 0; transform: translate(0, 3em); transition: all 1s; }
#fade-in.visible { opacity: 1; transform: translate(0, 0); transition-delay: 200ms; }

/* =========================================
   5. HEADER & NAVIGATION
   ========================================= */
header {
  position: fixed;
  top: 50px;
  width: 100%;
  z-index: 100;
}

/* Header Buttons Specifics */
header .btn {
  background-color: var(--c-accent-2);
  padding-right: 25px;
  margin-left: -35px;
}
header .btn-skew { background-color: var(--c-accent-2); margin-left: -40px;}
header .large { margin-right: -30px; z-index: 0; }
header .small { background-color: var(--c-accent-1); display: flex; flex-direction: column; z-index: 2; }
header .small-skew { margin-right: 46px; background-color: var(--c-accent-1); }

/* Header Hover States */
header .btn-wrap:hover .btn-skew,
header .btn-wrap:hover .btn { background-color: var(--c-accent-1); }
header .btn-wrap:hover .small,
header .btn-wrap:hover .small-skew { background-color: var(--c-accent-2); }

/* Hamburger Icon Animation */
.top, .btm {
  height: 2px;
  background-color: #fff;
  border-radius: 99px;
  margin-left: 19px;
  transition: all 0.15s linear;
}
.top { width: 30px; margin-top: 12px; margin-bottom: 10px; }
.btm { width: 23px; }

header .btn-wrap:hover .top { width: 23px; }
header .btn-wrap:hover .btm { width: 30px; }
header .small img { transform: translateX(0); transition: all 0.15s linear; width: 25px; }

/* Overlay Menu */
.menu-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; 
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  z-index: 1000;
}
.menu-bg {
  width: 100%; height: 100%;
  background-color: #000;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  z-index: -1;
  transition: all linear 0.6s;
}
.menu {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(40px) brightness(1.15);
  -webkit-backdrop-filter: blur(40px) brightness(1.15);
  width: 500px;
  height: calc(100vh - 105px);
  height: calc(100dvh - 105px);
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 15px;
  border: 1px var(--c-border) solid;
  margin-left: auto; margin-top: 55px;
  padding: 28px;
  z-index: 4;
  transform: translateX(100vw);
  transition: all linear 0.6s;
}

.menu-container.show { pointer-events: auto; }
.menu-container.show .menu { transform: translateX(0); }
.menu-container.show .menu-bg { opacity: 0.8; pointer-events: auto; transition: all linear 0.6s;}
.menu-container .container {pointer-events: none;}
.menu-container .container .menu {pointer-events: auto;}

.close { width: 100%; border-bottom: 1px solid #AAA; padding-bottom: 1rem; margin-bottom: 2rem; }
.close a p, .nav-btm p { font-weight: 300; color: #AAA; }
.close a img { padding-right: 1rem; }
.nav-btm { width: 100%; border-top: 1px solid #AAA; }
.nav-btm p { margin: 1rem 0; }

/* Navigation Links */
nav { display: flex; flex-direction: column; font-weight: 600; font-size: 2.2rem; text-transform: uppercase; line-height: 1.1; }
nav a { position: relative; display: flex; align-items: center; margin-bottom: 1.3rem; overflow: hidden; }
nav a span { display: inline-block; position: relative; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); transition-delay: calc(var(--i) * 0.03s); }
nav a span::after { content: attr(data-letter); position: absolute; left: 0; top: 100%; color: var(--c-accent-1); }
nav a:hover span, nav a.aktiv span { transform: translateY(-100%); }
nav a.aktiv span::after { color: var(--c-accent-1); }
nav a.aktiv { color: var(--c-accent-1); }
nav a img { padding-left: 0.5rem; margin-bottom: -10px; }

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: visible;
  margin-bottom: -15vh;
}
.hero h1 { position: absolute; bottom: 14vh; }
.hero img {
  height: 100vh; width: auto;
  min-width: 100vw; max-width: none;
  display: block; position: absolute;
  right: 0; margin-top: 20vh;
}

.hero.sub { height: 80vh; margin-bottom: -20vh; }
.hero.sub h1 { bottom: 39vh; }
.hero.sub img { margin-top: -5vh; }
.intro { font-size: 1.5rem; margin-top: 42vh; }

/* =========================================
   7. BUTTONS (Shared Styles)
   ========================================= */
.btn-wrap { display: flex; align-items: flex-start; justify-content: flex-end; }

.btn, .btn-skew {
  background-color: var(--c-accent-1);
  border-radius: 15px;
  transition: all 0.15s ease-in-out;
  height: 55px;
}

.btn {
  width: fit-content;
  text-align: center;
  padding-top: 0.55rem;
  padding-left: 25px;
  color: var(--c-text);
  font-weight: 300;
  font-size: 1rem;
  z-index: 1;
}

.btn-skew {
  margin-left: -40px;
  width: 75px;
  transform: skewX(-20deg);
}
.btn-wrap:hover .btn-skew { transform: skewX(20deg); }

.small, .small-skew { background-color: var(--c-accent-3); transition: all 0.15s ease-in-out; }
.small { width: 60px; margin-left: -40px; padding-top: 8px; padding-left: 0; }
.small img { transform: translateX(-3px); transition: all 0.15s ease-in-out; }
.small-skew { margin-left: 6px; width: 50px; }

/* Standard Button Hover */
.btn-wrap:hover .btn-skew, .btn-wrap:hover .btn { background-color: var(--c-accent-3); }
.btn-wrap:hover .small, .btn-wrap:hover .small-skew { background-color: var(--c-accent-1); }
.btn-wrap:hover .small img { transform: translateX(0); }

/* =========================================
   8. CARDS & GLOW BOXES
   ========================================= */
.glow-box-container { display: flex; flex-direction: column; width: 100%; position: relative; }
.glow-box-container:hover .glow-color { transform: translateY(-20px); }
.glow-box-container:hover .glow-box-content { transform: translateY(-10px); }
.glow-box-container:hover .glow-box-link img { --speed: 2s; }

.glow-box {
  position: relative; z-index: 2;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(40px) brightness(1.15);
  -webkit-backdrop-filter: blur(40px) brightness(1.15);
  width: 100%; flex-grow: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 70px;
  border-radius: 15px;
  border: 1px var(--c-border) solid;
}

.glow-color {
  position: relative; z-index: 1;
  background-color: var(--c-accent-2);
  width: calc(100% - 50px);
  margin: 0 auto; height: 40px;
  border-radius: 15px;
  transform: translateY(-30px);
  transition: all ease-in-out 0.2s;
}

.glow-box-content { transition: all ease-in-out 0.2s; width: 100%; }
.glow-box-content p { color: var(--c-text-muted); font-size: 1rem; padding-bottom: 1.5rem; }

.glow-box-link { display: flex; align-items: center; justify-content: flex-end; width: fit-content; margin-left: auto; }
.glow-box-link p { color: var(--c-text); text-transform: uppercase; font-weight: 600; font-size: 1.2rem; line-height: 1; }
.glow-box-link img {
  --speed: 10s;
  animation: spinning var(--speed) linear infinite;
  margin-left: 1rem;
  transition: --speed 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grids */
.glow-box-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.glow-box-grid-sixer, .glow-box-grid-dreier {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; margin-top: 3rem;
}
.glow-box-grid-sixer h4, .glow-box-grid-dreier h4 { font-size: 1.2rem; color: var(--c-text); }

/* Sixer Specific Logic */
.glow-box-grid-sixer .glow-box-container:nth-child(5) { grid-column: span 2; }
.glow-box-grid-sixer .glow-box-container:nth-child(5) .glow-color { background-color: var(--c-accent-1); }

/* Top 3 items reverse logic */
.glow-box-grid-sixer .glow-box-container:nth-child(1) { flex-direction: column-reverse; }
.glow-box-grid-sixer .glow-box-container:hover:nth-child(1) .glow-color { transform: translateY(20px); }
.glow-box-grid-sixer .glow-box-container:nth-child(1) .glow-color { transform: translateY(30px); }
.glow-box-grid-sixer .glow-box-container:hover:nth-child(1) .glow-box-content { transform: translateY(10px); }
.glow-box-grid-sixer .glow-box-container:nth-child(1) .glow-box-content p { padding-bottom: 0; }


/* Call to Action (CTA) Component */
.cta .flex { align-items: flex-start; }
.cta .content-container { width: auto; padding: 0; }
.cta .glow-box-content p { width: 55%; }
.cta .glow-box-content h2 { padding-right: 2rem; width: 45%; }

/* Tilt Animations */
.tilt { perspective: 900px; }
.tilt-right, .tilt-left {
  display: block; width: 100%; height: auto;
  border-radius: 15px; border: 1px var(--c-border) solid;
  backface-visibility: hidden; will-change: transform;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tilt-right {
  transform: rotateY(10deg); transform-origin: left center;
  animation: floatRight 6s ease-in-out infinite;
}
.tilt-left {
  transform: rotateY(-10deg); transform-origin: right center;
  animation: floatLeft 7s ease-in-out infinite;
}
.content-rows:hover .tilt-right, .content-rows:hover .tilt-left { animation-play-state: paused; }
.content-rows:hover img { border-color: var(--c-accent-2); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* =========================================
   9. FORMS & CONTACT
   ========================================= */
.contact { display: flex; width: 100%; }
form#kontaktform { flex: 1; display: flex; flex-direction: column; }
.contact-block { 
  width: 280px; 
  margin-left: 2rem; 
  margin-top: 1.5rem; 
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  }
  .contact-block p {
    padding-bottom: 1rem;
  }
.contact-space { padding-left: 0.5rem; line-height: 2; }

form input, form textarea {
  width: 100%;
  padding: 0.33rem 1rem 0.4rem 0.5rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background-color: var(--c-input-bg);
  color: var(--c-text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
form input:focus, form textarea:focus {
  border-color: var(--c-accent-2);
  box-shadow: 0 0 0 4px rgba(75, 176, 91, 0.1);
  outline: none;
}

.form_rows { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; }
form p { padding-bottom: 0.3rem; font-size: 1rem; }
form p span { font-size: 0.75rem; font-weight: 300; }
.form_rows p, form > p { width: 100%; margin: 0; padding-bottom: 0.5rem; }

/* Checkboxes & Labels */
var, noscript { color: var(--c-text); font-weight: 300; }
.checkbox { font-size: 0.75rem; }
.checkbox > input {
  height: 1.1em; width: 1.18em;
  -webkit-appearance: none; appearance: none;
  background-color: var(--c-input-bg);
  border: 1px solid var(--c-border);
  transform: translateY(0.3em);
  margin-right: 0.5em; margin-left: 0;
  outline: none;
}
.checkbox > input:checked { background-color: var(--c-accent-2); }
.checkbox a { font-weight: 500; }
.checkbox a:hover { text-decoration: underline; }

#submitButton { margin-top: 0.5rem; }
.success { width: 100%; }
.form_send { display: flex; align-items: flex-start; justify-content: space-between; }
.form_send p { line-height: 1; }
.form_send .check { width: auto; margin-right: 3rem; margin-left: 0.5rem; flex: 1; }

/* =========================================
   10. LEGAL PAGES
   ========================================= */
body.legal section { margin-top: 20vh; }
body.legal h1, body.legal h2, body.legal h3, body.legal h4 { width: 100%; padding: 0; }
body.legal h1 { font-size: 3rem; color: var(--c-text); margin: 0 0 2rem 0; }
body.legal h2 { font-size: 2rem; margin: 1.5rem 0 1rem 0; }
body.legal h3 { font-size: 1.5rem; margin: 1.5rem 0 1rem 0; }
body.legal h4 { font-size: 1.2rem; margin: 0.5rem 0 0.4rem 0; }
body.legal section a { font-style: italic; }
body.legal section p { margin: 0 0 1rem 0; padding: 0; }

/* =========================================
   11. FOOTER
   ========================================= */
footer {
  position: relative;
  width: 100%;
  display: flex; align-items: flex-end;
}
footer .content-container {
  display: flex; justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 150px;
}
footer .content-container p { max-width: 60ch; }
footer .flex { align-items: flex-start; }

.footer-links {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--c-border);
  margin-left: auto;
}
.footer-links a {
  padding-left: 1rem; margin-right: 6rem;
  line-height: 2; transition: all 0.15s ease-in-out;
}
.footer-links a:hover { font-style: italic; }

.up {
  border: 1px solid var(--c-accent-3);
  border-radius: 15px;
  height: 55px; width: 55px;
  padding: 0.34rem 0 0 13px;
  transform: rotate(-90deg);
  transition: all 0.15s ease-in-out;
}
.up:hover { background-color: var(--c-accent-3); }



@media (max-width: 1750px) {
  
  h1 { width: 25ch;}
  h1 span { font-size: 3.5rem;}
  .leistungen h1 { width: 20ch; }
  .ueber-uns h1 { width: 30ch; }
  .kontakt h1 { width: 26ch; }
}

@media (max-width: 1400px) {
.cta .glow-box-content p { width: 45%; }
.cta .glow-box-content h2 { padding-right: 2rem; width: 55%; }
}

@media (max-width: 1265px) {

  :root {
  font-size: 18px;
}

.hero { height: 90vh; margin-bottom: -20vh; }
.hero h1 { bottom: auto; top: 45vh; }
.hero img { height: 50vh; margin-top: 40vh; }

.hero.sub { height: 70vh; margin-bottom: -20vh; }
.hero.sub h1 { bottom: auto; top: 25vh; }
.hero.sub img { height: 50vh; margin-top: 20vh; }
.intro { margin-top: 28vh; }

.glow-box { padding: 50px; }
.h3-icon img { height: 5rem; }
.glow-box-grid { gap: 9; }
.glow-box-grid-sixer, .glow-box-grid-dreier {
  gap: 9px;
}

.btn {
  padding-top: 0.7rem;
}
header .small {
  padding-top: 0.5rem;
}

.up {
  padding: 0.52rem 0 0 13px;
}

}



@media (min-width: 1025px) {
  .glow-box-grid-sixer .glow-box-container:nth-child(3) { flex-direction: column-reverse; }
  .glow-box-grid-sixer .glow-box-container:hover:nth-child(3) .glow-color { transform: translateY(20px); }
  .glow-box-grid-sixer .glow-box-container:nth-child(3) .glow-color { transform: translateY(30px); }
  .glow-box-grid-sixer .glow-box-container:hover:nth-child(3) .glow-box-content { transform: translateY(10px); }
  .glow-box-grid-sixer .glow-box-container:nth-child(3) .glow-box-content p { padding-bottom: 0; }
}

@media (max-width: 1025px) {

  section { margin-bottom: 120px; }

  .glow-box-grid { grid-template-columns: repeat(1, 1fr); gap: 0; }
  .glow-box-grid-dreier {
  grid-template-columns: repeat(1, 1fr); gap: 0;
  }
  .glow-box-grid-sixer {
  grid-template-columns: repeat(2, 1fr); gap: 9px;
  }

  .glow-box-grid-sixer .glow-box-container:nth-child(3) .glow-color { display: none; }
  .glow-box-grid-sixer .glow-box-container:hover:nth-child(3) .glow-box-content { transform: translateY(0); }
  .glow-box-grid-sixer .glow-box-container:nth-child(3) .glow-box-content p { padding-bottom: 0; }
  .glow-box-grid-sixer .glow-box-container:nth-child(4) .glow-color { display: none; }
  .glow-box-grid-sixer .glow-box-container:hover:nth-child(4) .glow-box-content { transform: translateY(0); }
  .glow-box-grid-sixer .glow-box-container:nth-child(4) .glow-box-content p { padding-bottom: 0; }

  .cta .flex { align-items: flex-start; flex-direction: column; }
  .cta .glow-box-content p { width: 100%; }
  .cta .glow-box-content h2 { padding-right: 0; width: 100%; }

  .contact {flex-direction: column-reverse; }
  .contact-block { width: 100%; margin-left: 0; margin-top: 0; margin-bottom: 1.5rem; flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .contact-space { padding-left: 0;}


  .contact-block p {
    padding-bottom: 1rem;
  }
  

}

@media (max-width: 840px) {

  h1 {
  font-size: 1.8rem;
  width: 90%;
  }
  h1 span { font-size: 3rem; }

  .leistungen h1 { width: 90%; }
  .ueber-uns h1 { width: 90%; }
  .kontakt h1 { width: 90%; }

  .intro { font-size: 1.3rem;}

  h2 {
  font-size: 1.3rem;
  width: 100%;
}
h2 span { font-size: 2rem; }
.two-third h2 { width: 100%; }

  }


@media (min-width: 760px) {
  .glow-box-grid-sixer .glow-box-container:nth-child(2) { flex-direction: column-reverse; }
  .glow-box-grid-sixer .glow-box-container:hover:nth-child(2) .glow-color { transform: translateY(20px); }
  .glow-box-grid-sixer .glow-box-container:nth-child(2) .glow-color { transform: translateY(30px); }
  .glow-box-grid-sixer .glow-box-container:hover:nth-child(2) .glow-box-content { transform: translateY(10px); }
  .glow-box-grid-sixer .glow-box-container:nth-child(2) .glow-box-content p { padding-bottom: 0; }
}

@media (max-width: 760px) {

  :root {
  --border: 25px;
}

section { margin-bottom: 80px; }

  .glow-box-grid-sixer {
    grid-template-columns: repeat(1, 1fr); gap: 9px;
    }

  .glow-box-grid-sixer .glow-box-container:nth-child(5) { grid-column: span 1; }


  .glow-box-grid-sixer .glow-box-container:nth-child(2) .glow-color { display: none; }
  .glow-box-grid-sixer .glow-box-container:hover:nth-child(2) .glow-box-content { transform: translateY(0); }
  .glow-box-grid-sixer .glow-box-container:nth-child(2) .glow-box-content p { padding-bottom: 0; }

  .flex.content-rows { flex-direction: column; }
.one-third { width: 100%; }
.two-third { width: 100%; }

.pad-left { padding-left: 0; }
.pad-right { padding-right: 0; }
.content-rows { padding: 1rem 0; }

.p-start {
  display: none;
}

header .small-skew { margin-right: 0; } 
header img { padding-right: 4rem;}
header { top: 25px;}


.menu {
  width: 100%;
  height: calc(100vh - 45px);
  height: calc(100dvh - 45px);
  display: flex; flex-direction: column; justify-content: space-between;
  margin-left: auto; margin-top: 25px;
  padding: 20px;
  transition: all linear 0.3s;
}

body {
  background-size: 160% auto;
}

body.leistungen { background-size: 200% auto; }
body.ueber-uns  { background-size: 200% auto; }
body.kontakt    { background-size: 200% auto; }

.hero { height: 100vh; margin-bottom: -20vh; }
.hero h1 { bottom: auto; top: 52vh; }
.hero img{ height: 40vh; margin-top: 60vh; }

.hero.sub { height: 75vh; margin-bottom: -20vh; }
.hero.sub h1 { bottom: auto; top: 30vh; }
.hero.sub img { height: 40vh; margin-top: 38vh; }

h1 {
  font-size: 1.3rem;
  width: fit-content;  padding-right: 1rem;
  text-wrap: balance;
  }
  h1 span { font-size: 2.2rem;}

  .leistungen h1 { width: fit-content;  padding-right: 1rem; }
  .ueber-uns h1 { width: fit-content;  padding-right: 1rem; }
  .kontakt h1 { width: fit-content;  padding-right: 1rem; }

  .intro { font-size: 1.1rem;}

  h2 {
  font-size: 1.2rem;
  width: 100%;
}
h2 span { font-size: 1.7rem; }

h3 { font-size: 1.3rem; }

h4 {
  font-size: 1.2rem;
}

body.legal h1 { font-size: 2.2rem;}
body.legal h2 { font-size: 1.7rem;}
body.legal h3 { font-size: 1.3rem;}
body.legal h4 { font-size: 1.2rem;}


.h3-icon { flex-direction: column; align-items: flex-start;}
.h3-icon img { padding-bottom: 1rem;}

.glow-box { padding: 30px; }

.flex.reverse {
  display: flex;
  flex-direction: column-reverse;
}

.one-third {
  margin-bottom: 2rem;
}

.contact-block { 
  width: 100%; 
  margin-left: 0; 
  margin-top: 0; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  }
.contact-space { padding-left: 0;}

.form_rows { grid-template-columns: 1fr; gap: 0;}
.form_send { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.form_send .check { margin-right: 0;}





footer .content-container {
  flex-direction: column;
  margin-bottom: 75px;
}
footer .content-container p { max-width: 100%; padding-bottom: 2rem; }

.footer-links {
  margin-left: 0;
}


}