/* ===========================================
   Forst Adami — Forstbetrieb in Kärnten
   style.css
   =========================================== */

/* --- Custom Properties --- */
:root {
  --forest-dark: #1a2e1a;
  --forest: #2d5a2d;
  --forest-light: #3e7a3e;
  --wood: #8b6f47;
  --wood-hover: #a07d4e;
  --wood-warm: #c4a265;
  --stone: #f7f3ec;
  --stone-mid: #ede7da;
  --stone-dark: #ddd4c2;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --border: #d0c8b8;
  --white: #ffffff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 6px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--stone);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--forest-light);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--forest-dark);
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }

p + p { margin-top: 1em; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--forest-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--white);
  opacity: 0.9;
}

.brand-icon {
  width: 28px;
  height: 28px;
  color: var(--wood-warm);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   Hero (Homepage)
   ========================================= */
.hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  background-color: var(--forest-dark);
  background-image:
    linear-gradient(165deg, rgba(20,36,20,0.88) 0%, rgba(26,46,26,0.72) 45%, rgba(14,30,18,0.82) 100%),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 720px;
  animation: fadeUp 0.9s ease-out;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero .lead {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero .lead strong {
  color: var(--wood-warm);
  font-weight: 600;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background: var(--wood);
  color: var(--white);
  border-color: var(--wood);
}

.btn-primary:hover {
  background: var(--wood-hover);
  border-color: var(--wood-hover);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(139,111,71,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--forest);
  border-color: var(--white);
}

.btn-forest {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.btn-forest:hover {
  background: var(--forest-light);
  border-color: var(--forest-light);
  color: var(--white);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   Sections
   ========================================= */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.08rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* =========================================
   Service Cards (Homepage)
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--forest);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card .card-link {
  color: var(--wood);
  font-weight: 600;
  font-size: 0.95rem;
}

.service-card .card-link:hover {
  color: var(--wood-hover);
}

/* =========================================
   Benefits
   ========================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benefit-item {
  text-align: center;
  padding: 24px 16px;
}

.benefit-check {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.benefit-item h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.benefit-item p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
  padding: 72px 0;
  text-align: center;
  background-color: var(--forest-dark);
  background-image:
    linear-gradient(135deg, rgba(26,46,26,0.92), rgba(45,90,45,0.88)),
    url('https://images.unsplash.com/photo-1425913397330-cf8af2ff40a1?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-section .cta-email {
  color: var(--wood-warm);
  font-weight: 600;
}

.cta-section .cta-email:hover {
  color: var(--white);
}

/* =========================================
   Page Header (Inner Pages)
   ========================================= */
.page-header {
  padding: 150px 0 56px;
  text-align: center;
  background-color: var(--forest-dark);
  background-image:
    linear-gradient(165deg, rgba(20,36,20,0.9) 0%, rgba(26,46,26,0.82) 100%),
    url('https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
}

/* =========================================
   Content Blocks (Inner Pages)
   ========================================= */
.content-section {
  padding: 72px 0;
}

.content-section + .content-section {
  padding-top: 0;
}

.content-section.alt {
  background: var(--white);
  padding: 72px 0;
}

.content-section.alt + .content-section.alt {
  padding-top: 0;
}

.content-block {
  max-width: 780px;
  margin: 0 auto;
}

.content-block h2 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--stone-dark);
}

.content-block h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--forest);
}

.content-block p {
  margin-bottom: 16px;
  color: var(--text);
}

.content-block ul,
.content-block ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content-block ul {
  list-style: disc;
}

.content-block ol {
  list-style: decimal;
}

.content-block li {
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.65;
}

/* =========================================
   Leistungen Detail Cards
   ========================================= */
.leistung-detail {
  padding: 56px 0;
  border-bottom: 1px solid var(--stone-dark);
}

.leistung-detail:last-child {
  border-bottom: none;
}

.leistung-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.leistung-icon {
  width: 44px;
  height: 44px;
  color: var(--forest);
  flex-shrink: 0;
  margin-top: 2px;
}

.leistung-detail h2 {
  border: none;
  padding: 0;
  margin: 0;
  font-size: 1.4rem;
}

.leistung-detail p {
  color: var(--text);
  margin-bottom: 16px;
  max-width: 780px;
}

.leistung-detail ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  max-width: 780px;
}

.leistung-detail li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.6;
}

.leistung-detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
  opacity: 0.5;
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.process-step {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.process-step h4 {
  font-size: 0.95rem;
  color: var(--forest-dark);
}

/* =========================================
   About Page
   ========================================= */
.about-highlight {
  background: var(--white);
  border-left: 4px solid var(--wood);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
}

/* =========================================
   Contact Page
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  border: none;
  padding: 0;
  margin-bottom: 24px;
}

.contact-detail {
  margin-bottom: 24px;
}

.contact-detail h3 {
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.contact-detail p,
.contact-detail a {
  color: var(--text);
  font-size: 1rem;
}

.contact-detail a:hover {
  color: var(--forest-light);
}

/* --- Form --- */
.contact-form-wrap {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-wrap h2 {
  border: none;
  padding: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.contact-form-wrap .form-intro {
  color: var(--text-light);
  font-size: 0.93rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required {
  color: #c0392b;
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--stone);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45,90,45,0.1);
  background: var(--white);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5a5a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-submit {
  margin-top: 8px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success .success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.form-success h3 {
  color: var(--forest);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-light);
}

/* =========================================
   Legal Pages (Impressum / Datenschutz)
   ========================================= */
.legal-section {
  padding: 56px 0 80px;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.25rem;
  color: var(--forest);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--forest-light);
}

.legal-list {
  margin: 16px 0 24px;
}

.legal-list dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 12px;
}

.legal-list dt:first-child {
  margin-top: 0;
}

.legal-list dd {
  color: var(--text);
  margin-left: 0;
  margin-bottom: 4px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin: 12px 0;
}

.legal-content li {
  margin-bottom: 6px;
  line-height: 1.65;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.footer-brand a {
  color: var(--wood-warm);
  text-decoration: none;
}

.footer-brand a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
  .services-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--forest-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 16px rgba(0,0,0,0.2);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 12px 16px;
    border-radius: var(--radius);
  }

  .hero {
    min-height: 85vh;
    padding: 100px 20px 60px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: 56px 0;
  }

  .page-header {
    padding: 130px 0 40px;
  }

  .content-section {
    padding: 48px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
  }

  .process-steps {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .lead {
    font-size: 0.98rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  h2 {
    font-size: 1.3rem;
  }
}
