/* ============================================
   PLANkultur - Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  background-color: #f5f5f5;
}

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

a {
  color: #1a8fc4;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0d6e9e;
}

ul {
  list-style: none;
}

/* --- Layout --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 30px;
}

/* --- Header --- */
.site-header {
  background: #fff;
  border-bottom: 3px solid #1a8fc4;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  padding-left: 15px;
}

.logo img {
  height: 50px;
  width: auto;
}

@media (min-width: 769px) {
  .logo img {
    height: 65px;
  }
}

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: #666;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  padding: 5px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1a8fc4, transparent);
  transform-origin: center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.main-nav a:hover,
.main-nav a.active {
  color: #1a8fc4;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-right: 15px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #333;
  margin: 6px 0;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Sections --- */
.section {
  padding: 60px 0;
}

.section--white {
  background: #fff;
}

.section--gray {
  background: #f0f0f0;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #333;
  margin-bottom: 40px;
  padding-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #1a8fc4, transparent);
}

/* --- Profil Section --- */
.profil-intro h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.profil-intro p {
  text-align: justify;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: #555;
}

/* Image gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 40px 0;
}

.image-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* CV / Lebenslauf */
.cv-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  border-bottom: 2px solid #1a8fc4;
  padding-bottom: 8px;
}

.cv-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 0.88rem;
}

.cv-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: top;
  color: #555;
}

.cv-table td:first-child {
  white-space: nowrap;
  width: 200px;
  font-weight: 600;
  color: #333;
}

.cv-table tr:last-child td {
  border-bottom: none;
}

.qualifications p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

/* --- Leistungen Section --- */
.leistungen-content h3,
.ueber-mich-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  margin-top: 25px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e0e0e0;
}

.leistungen-content h3:first-child,
.ueber-mich-content h3:first-child {
  margin-top: 0;
}

.leistungen-content h4,
.ueber-mich-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin-top: 15px;
  margin-bottom: 8px;
}

.leistungen-content ul,
.ueber-mich-content ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.leistungen-content li,
.ueber-mich-content li {
  list-style: none;
  position: relative;
  padding-left: 15px;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #555;
}

.leistungen-content li::before,
.ueber-mich-content li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: #555;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

.ueber-mich-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Referenzen --- */
.ref-category {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.ref-subnav {
  margin: 0 0 28px;
}

.ref-subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ref-subnav a {
  display: block;
  padding: 8px 14px;
  border: 1px solid #d7e7ef;
  background: #fff;
  color: #1a8fc4;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

#ref-bauleitplanung,
#ref-moderation {
  scroll-margin-top: 110px;
}

.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.ref-card {
  background: #fff;
  border-radius: 4px;
  padding: 25px 28px;
  position: relative;
  border-left: 3px solid #1a8fc4;
}

.section--white .ref-card {
  background: #f0f0f0;
}

.section--gray .ref-card {
  background: #fff;
}

.ref-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a8fc4;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ref-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
}

.ref-type {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a8fc4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.ref-card p {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 12px;
}

.ref-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.ref-meta span {
  font-size: 0.75rem;
  color: #666;
  background: #f5f5f5;
  padding: 3px 10px;
  border-radius: 3px;
}

/* --- Kontakt Section --- */
.kontakt-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.kontakt-info p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.kontakt-info strong {
  color: #333;
}

/* Contact form */
.contact-form {
  margin-top: 30px;
}

.contact-form h3 {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a8fc4;
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  accent-color: #1a8fc4;
}

.checkbox-group label {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.captcha-row .captcha-question {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.captcha-row input {
  width: 60px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.9rem;
  text-align: center;
}

.captcha-row input:focus {
  outline: none;
  border-color: #1a8fc4;
}

.btn-submit {
  display: inline-block;
  background: #1a8fc4;
  color: #fff;
  border: none;
  padding: 12px 35px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #147aa8;
}

/* --- Footer --- */
.site-footer {
  background: #fff;
  border-top: 3px solid #1a8fc4;
}

.footer-nav {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #666;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-nav a:hover {
  color: #1a8fc4;
}

.footer-bottom {
  padding: 15px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: #999;
}

.footer-bottom a {
  color: #999;
}

.footer-bottom a:hover {
  color: #1a8fc4;
}

/* --- Animations --- */

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-in-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-children.is-visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-children.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-children.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-children.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.fade-in-children.is-visible > *:nth-child(5) { transition-delay: 0.4s; }

/* Section title line animation */
.fade-in .section-title::after,
.section-title.fade-in::after {
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.8s ease 0.3s;
}

.fade-in.is-visible .section-title::after,
.section-title.fade-in.is-visible::after {
  transform: scaleX(1);
}

/* Image gallery hover lift */
.image-gallery img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-gallery img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Button pulse on hover */
.btn-submit {
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 143, 196, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Nav links underline animation */
.main-nav a::after {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* CV table row hover */
.cv-table tr {
  transition: background 0.3s ease;
}

.cv-table tr:hover {
  background: rgba(26, 143, 196, 0.04);
}

/* Footer links */
.footer-nav a {
  transition: color 0.3s ease;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner {
    padding: 25px 0;
  }

  .logo img {
    height: 65px;
  }

  .menu-toggle {
    display: block;
    padding: 10px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 15px 30px;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
  }

  .main-nav a::after {
    display: none;
  }

  .image-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .image-gallery img {
    height: auto;
  }

  .cv-table td:first-child {
    width: auto;
    white-space: normal;
  }

  .leistungen-grid {
    grid-template-columns: 1fr;
  }

  .ref-grid {
    grid-template-columns: 1fr;
  }

  .ref-subnav ul {
    justify-content: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .footer-nav ul {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 56px 0;
  }

  .container {
    padding: 0 12px;
  }

  .logo {
    padding-left: 0;
  }

  .menu-toggle {
    padding: 10px;
  }

  .main-nav ul {
    padding: 26px 16px;
  }

  .logo img {
    height: 40px;
  }

  .section {
    padding: 60px 0;
  }
}
