:root {
  --eco-light: #146b6b;
  --eco-dark: #0c3c3c;
  --eco-accent: #0f5b50;
  --white: #fafafa;
  --black: #1a1a1a;

  --max-width: 1200px;
  --padding: 8%;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.15);
  /* --shadow: 0 8px 20px rgba(0, 0, 0, 0.3); */
  --text-marker: rgba(12, 60, 60, 0.1);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-family: "mundial", sans-serif;
  font-size: clamp(16px, calc(16px + 0.3vw), 20px);
  /* font-size: 18px; */
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--black);
  background: var(--white);
}

/* Make page a column flex container so footer can be pushed to bottom */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-weight: 100;
  letter-spacing: 0.1em;
}

h2 {
  margin-bottom: 0.5em;
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  line-height: 1em;
  color: var(--eco-dark);
}

p {
  margin-bottom: 1.25em;
}

.block {
  text-align: justify;
  text-justify: inter-word;
  hyphens: manual;
  -webkit-hyphens: manual;
  -moz-hyphens: manual;
  text-align-last: left;
  -moz-text-align-last: left;
}

.textmarker {
  display: inline;
  background-image: linear-gradient(var(--text-marker), var(--text-marker));
  background-repeat: no-repeat;
  background-size: 100% 0.5em; /* thickness */
  background-position: 0 90%; /* offset down */
  padding-bottom: 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.checkbox {
  padding: 1em 1em 0 1em;
  background: var(--text-marker);
}

.checklist {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.25em 0;
  padding-left: 0.5em;
  list-style: none;
  line-height: 1.2em;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--eco-dark);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 60%;
  transform: translateY(-35%);
  width: 1em;
  height: 1em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8f4a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>")
    center/contain no-repeat;
}

.checkbox > .checklist li::before {
  top: 0.7em;
}

.checkbox > .checklist li {
  margin: 0.25em 0;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 70vh;
  width: 100vw;
  padding: 1rem;
  margin-bottom: 50px;
  color: var(--white);
  background-image: url(assets/ipad-tools.jpg);
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.bg-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--eco-dark), #146b6b);
  opacity: 0.8;
  z-index: -1;
}

.logo {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3em;
  margin-bottom: 3rem;
  font-size: clamp(1rem, calc(0.8rem + 5vw), 4rem);
}

.logo svg {
  height: 2.3em;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  line-height: 1.25em;
}

.logo-text p {
  font-weight: 600;
  font-size: 0.3em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Center header content and ensure buttons are centered horizontally */
.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}
.header-content > div:last-child {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn {
  width: 10em;
  margin: 0 0.5em;
  padding: 0.25rem 0.75rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  line-height: 2.2em;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn.white {
  color: var(--eco-dark);
  background: var(--white);
}

.btn.green {
  border: 2px solid var(--eco-dark);
  background: var(--white);
  color: var(--eco-dark);
}

/* Ensure header buttons have the same width and centered text */
.header-content > div {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.header-content > div .btn {
  display: inline-block;
  width: 10rem; /* same fixed width for both buttons */
  text-align: center;
  padding: 0.25rem 0.75rem; /* horizontal + small vertical padding to reduce height */
}

section:not(.angled) {
  padding: 40px var(--padding);
}

.padded {
  max-width: var(--max-width);
  margin: auto;
}

section .two {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  flex-wrap: wrap; /* allow wrapping when items get too narrow */
}

section .two > * {
  flex: 1 1 350px; /* equal widths, wrap when less than 350px available */
  min-width: 0; /* prevents overflow with long text */
}

section .two img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

section.angled {
  margin-top: 80px;
  background: var(--text-marker);
  text-align: center;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

section.angled > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px var(--padding);
}

section.angled .text {
  flex: 1 1 400px;
}

section.angled img {
  width: 10vw;
  height: auto;
}

section#warum .two {
  align-items: center;
}

.rounded {
  border-radius: 16px;
}

.shadow {
  box-shadow: var(--shadow);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 50px;
  text-align: center;
}

.cards > * {
  flex: 1 1 calc(50% - 20px);
  min-width: 300px;
  font-size: 0.95em;
  line-height: 1.4;
  background: var(--white);
  padding: 35px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cards > *:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.cards h3 {
  text-align: center;
  margin-bottom: 1em;
}

.process {
  display: flex;
  text-align: center;
  margin-top: 50px;
}

.process > * {
  padding: 20px 20px 30px 30px;
  background: linear-gradient(135deg, #0c3c3c, #146b6b);
  color: var(--white);
  transition: transform 0.5s;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 50%,
    calc(100% - 20px) 100%,
    0 100%,
    20px 50%
  );
}

.process h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2em;
}

.process p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--white);
}

.step:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
  z-index: 2;
}

@media (max-width: 800px) {
  .process {
    flex-direction: column;
    gap: 16px;
  }

  .process > * {
    margin-left: 0;
    padding: 40px 20px;
    transition: transform 0.3s;
    clip-path: polygon(
      50% 20px,
      100% 0px,
      100% calc(100% - 20px),
      50% 100%,
      0 calc(100% - 20px),
      0 0px
    );
  }

  .step p {
    padding: 0 1em;
    text-align: center;
    text-align-last: center;
    -moz-text-align-last: center;
  }
  .step:hover {
    transform: scale(1.02);
    filter: brightness(1.08);
    z-index: 2;
  }
}

.icon {
  font-size: 2.6rem;
  margin-bottom: 15px;
}
.icon svg {
  width: 2em;
  height: 2em;
  display: block;
  margin: 0 auto 12px;
  /* stroke: #0f5b50; */
  fill: none;
  /* stroke-width: 1.8; */
}

/* KONTAKT */

#kontakt .cards > * {
  background-color: var(--text-marker);
  text-align: center;
}

#kontakt h2 {
  margin-bottom: 1em;
}

#kontakt a {
  color: var(--eco-accent);
  text-decoration: none;
}

#kontakt a:hover {
  text-decoration: underline;
}

#kontakt .card:hover {
  transform: scale(1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.address {
  margin: 50px 0;
  text-align: center;
}

footer {
  background: var(--eco-dark);
  color: var(--white);
  text-align: center;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  padding: 0.5em;
  margin-top: 1em;
}

footer a {
  color: var(--white);
  text-decoration: none;
  -webkit-text-decoration: none;
}

.privacy-grid {
  font-size: 0.9rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
