/* ============================================================
   Marcel Pigors – Statische Website  (v2 – aufgepeppt)
   ============================================================ */

:root {
  --green:        #237F52;
  --green-dark:   #1a6640;
  --green-light:  #e8f5ee;
  --green-mid:    #2d9b65;
  --gray:         #777777;
  --dark:         #1e2a22;
  --nav-bg:       #1e2a22;
  --white:        #ffffff;
  --off-white:    #f7faf8;
  --text:         #2c3e35;
  --border:       #d8e8df;
  --shadow-sm:    0 2px 8px rgba(35,127,82,0.08);
  --shadow-md:    0 8px 32px rgba(35,127,82,0.14);
  --shadow-lg:    0 20px 60px rgba(35,127,82,0.18);
  --radius:       10px;
  --transition:   0.25s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'K2D', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar__logo img {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 1px 6px rgba(255,255,255,0.25));
}

.navbar__logo-text {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  display: none;
}
@media (min-width: 640px) { .navbar__logo-text { display: block; } }

.navbar__menu {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

.navbar__menu a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.navbar__menu a:hover {
  background: var(--green);
  color: var(--white);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .navbar__toggle { display: flex; }
  .navbar__menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .navbar__menu.is-open { display: flex; }
  .navbar__menu a { display: block; padding: 12px 24px; border-radius: 0; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a6640 0%, #237F52 45%, #2db36e 100%);
  color: var(--white);
  padding: 110px 0 140px;
  overflow: hidden;
}

/* Decorative circles */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 340px; height: 340px;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  pointer-events: none;
}

/* Wave bottom */
.hero__wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}
.hero__wave svg { width: 100%; height: 60px; display: block; }

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}

.hero__sub {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'K2D', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn--white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn--white:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  text-decoration: none;
  color: var(--green-dark);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

.btn--green {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(35,127,82,0.3);
}
.btn--green:hover {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(35,127,82,0.4);
  text-decoration: none;
  color: var(--white);
}

/* ── Section base ───────────────────────────────────────── */
.section { padding: 88px 0; }
.section--alt { background: var(--off-white); }

.section__eyebrow {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section__lead {
  text-align: center;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto 56px;
  font-size: 1.02rem;
}

/* ── Credentials strip ──────────────────────────────────── */
.creds {
  background: var(--green);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.creds__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.creds__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background var(--transition);
}

.creds__item:hover {
  background: rgba(255,255,255,0.15);
}

.creds__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.creds__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  line-height: 1.3;
}

/* ── Über mich ──────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 768px) {
  .about { grid-template-columns: 1fr 1fr; }
}

.about__intro {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.8;
}

.about__qualifications {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.qual-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.qual-badge:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}

.qual-badge__dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.qual-badge__text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.about__visual {
  position: relative;
}

.about__card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--border);
}

.about__card img {
  max-height: 160px;
  object-fit: contain;
  margin: 0 auto 24px;
}

.about__card-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 8px;
}

.about__card-desc {
  font-size: 0.88rem;
  color: var(--gray);
}

/* Floating accent blob */
.about__blob {
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: linear-gradient(135deg, var(--green-light), rgba(35,127,82,0.12));
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  z-index: -1;
}

/* ── Schwerpunkte ───────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card:hover::before { transform: scaleX(1); }

.card__icon-wrap {
  width: 56px; height: 56px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: background var(--transition);
}
.card:hover .card__icon-wrap { background: var(--green); }

/* Emoji color inversion on hover via brightness trick */
.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.card__text {
  font-size: 0.93rem;
  color: var(--gray);
  line-height: 1.75;
  flex: 1;
}

.card__links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.card__link:hover { gap: 8px; text-decoration: none; }

/* ── Kontakt ────────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr 1.6fr; }
}

.contact-info {
  background: var(--green);
  border-radius: var(--radius);
  padding: 40px 32px;
  color: var(--white);
}

.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info-item__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-info-item__text {
  font-size: 0.93rem;
  opacity: 0.9;
  line-height: 1.6;
}

.contact-info-item__text a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}
.contact-info-item__text a:hover { color: var(--white); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-family: 'K2D', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(35,127,82,0.12);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 14px;
}
.form-note a { color: var(--green); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 40px 0;
  font-size: 0.88rem;
  text-align: center;
}

.footer__logo {
  height: 38px;
  margin: 0 auto 20px;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

/* ── Page header (Unterseiten) ──────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-mid) 100%);
  color: var(--white);
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header__back {
  font-size: 0.83rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  text-decoration: none;
  transition: color var(--transition);
}
.page-header__back:hover { color: var(--white); }

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 700px;
}

/* ── Content blocks (Unterseiten) ───────────────────────── */
.content-block {
  margin-bottom: 52px;
}

.content-block h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-light);
}

.content-block h2 span {
  font-size: 1.4rem;
}

.resource-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  padding-left: 26px;
}

.resource-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--green);
  border-radius: 8px 0 0 8px;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.resource-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.resource-card:hover::before { opacity: 1; }

.resource-card strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.resource-card a {
  font-size: 0.88rem;
  color: var(--green);
  font-weight: 500;
}

.resource-card p {
  font-size: 0.88rem;
  color: var(--gray);
  margin-top: 4px;
}

/* ── Impressum ──────────────────────────────────────────── */
.impressum-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.impressum-content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  margin: 32px 0 10px;
}
.impressum-content h2:first-child { margin-top: 0; }

.impressum-content p {
  color: var(--gray);
  font-size: 0.93rem;
  margin-bottom: 8px;
  line-height: 1.75;
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  text-align: center;
  overflow: hidden;
  margin: 0;
  line-height: 0;
}
.divider svg { display: block; width: 100%; }
