/* =========================================================
   Tischlerei Berg — warmes, handwerkliches Design
   ========================================================= */

:root {
  --bg: #f5efe4;            /* warmes Cremeweiß */
  --bg-soft: #ece3d2;       /* etwas dunkleres Beige */
  --bg-warm: #e8dcc4;       /* warmer Sand */
  --dark: #2a1f17;          /* tiefes Holzbraun */
  --darker: #1a130d;        /* noch dunkler */
  --text: #2a1f17;
  --text-soft: #5a4a3a;
  --primary: #8a5a2b;       /* warmes Holz-Braun */
  --primary-dark: #5e3d1c;
  --accent: #c98a4b;        /* Honig-Gold */
  --line: rgba(90, 74, 58, 0.18);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(42, 31, 23, 0.06);
  --shadow-md: 0 12px 40px rgba(42, 31, 23, 0.12);
  --shadow-lg: 0 30px 80px rgba(42, 31, 23, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p { color: var(--text-soft); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ============== KOPFZEILE ============== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(245, 239, 228, 0.3);
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
}
.logo-text small {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ============== BEGRÜSSUNG ============== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(42, 31, 23, 0.65) 0%, rgba(42, 31, 23, 0.25) 60%, rgba(42, 31, 23, 0) 100%),
    url('media/pexels-8135264.jpg');
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.2  0 0 0 0 0.1  0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 28px 100px;
  color: #f5efe4;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0;
  animation: rise 0.9s 0.1s forwards;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  color: #f5efe4;
  max-width: 14ch;
  margin-bottom: 28px;
  font-weight: 500;
  opacity: 0;
  animation: rise 1s 0.25s forwards;
}

.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 52ch;
  color: rgba(245, 239, 228, 0.85);
  margin-bottom: 44px;
  opacity: 0;
  animation: rise 1s 0.4s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 80px;
  opacity: 0;
  animation: rise 1s 0.55s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: #f5efe4;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  color: #f5efe4;
  border-color: rgba(245, 239, 228, 0.4);
}
.btn-ghost:hover {
  background: rgba(245, 239, 228, 0.1);
  border-color: rgba(245, 239, 228, 0.8);
}

.hero-meta {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s 0.75s forwards;
}
.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: #f5efe4;
  line-height: 1;
}
.hero-meta span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.7);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============== ABSCHNITTE ============== */

.section {
  padding: 120px 0;
  position: relative;
}

.section-warm {
  background: var(--bg-warm);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(138, 90, 43, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 138, 75, 0.06) 0%, transparent 50%);
}

.section-dark {
  background: var(--darker);
  color: #e8dcc4;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence baseFrequency='0.65' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.35  0 0 0 0 0.18  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.25'/></svg>");
}
.section-dark h2, .section-dark h4 { color: #f5efe4; }
.section-dark p { color: rgba(232, 220, 196, 0.75); }
.section-dark .kicker { color: var(--accent); }

.section-head {
  max-width: 720px;
  margin-bottom: 72px;
}
.section-head.light h2 { color: #f5efe4; }

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 16px;
}

.section-head .sub {
  font-size: 1.1rem;
  color: var(--text-soft);
}

/* ============== LEISTUNGEN / KARTEN ============== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: #faf6ec;
  padding: 44px 36px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all 0.4s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

.card-num {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
  opacity: 0.7;
}

.card h3 {
  font-size: 1.85rem;
  margin-bottom: 16px;
}

.card p {
  margin-bottom: 24px;
  font-size: 0.97rem;
}

.card-list {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.card-list li {
  font-size: 0.92rem;
  color: var(--text-soft);
  padding: 6px 0 6px 22px;
  position: relative;
}
.card-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

.card-feature {
  background: var(--dark);
  color: #e8dcc4;
  border-color: var(--dark);
}
.card-feature h3 { color: #f5efe4; }
.card-feature p { color: rgba(232, 220, 196, 0.8); }
.card-feature .card-list { border-top-color: rgba(245, 239, 228, 0.15); }
.card-feature .card-list li { color: rgba(232, 220, 196, 0.75); }
.card-feature .card-list li::before { color: var(--accent); }
.card-feature .card-num { color: var(--accent); }
.card-feature::before { background: var(--accent); }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

/* ============== SPLIT (Bild + Text) ============== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.stamp {
  position: absolute;
  bottom: -28px;
  right: -28px;
  background: var(--primary);
  color: #f5efe4;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  line-height: 1.1;
  box-shadow: var(--shadow-md);
  transform: rotate(-6deg);
  border: 2px dashed rgba(245, 239, 228, 0.5);
}
.stamp strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}
.stamp span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
  font-family: var(--font-body);
}

.split-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 24px;
}
.split-text p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.quote {
  margin-top: 36px;
  padding: 28px 32px;
  background: rgba(138, 90, 43, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--primary);
  line-height: 0.6;
  display: block;
  margin-bottom: 4px;
}
.quote p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.quote small {
  font-size: 0.85rem;
  color: var(--text-soft);
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 60px; }
  .split-media img { height: 400px; }
  .stamp { width: 110px; height: 110px; bottom: -18px; right: -10px; }
  .stamp strong { font-size: 1.2rem; }
}

/* ============== GALERIE ============== */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.g {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.5s ease;
}
.g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: saturate(0.92) contrast(1.02);
}
.g:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.g:hover img { transform: scale(1.06); }

.g-1 { grid-column: span 2; grid-row: span 2; }
.g-2 { grid-column: span 1; grid-row: span 1; }
.g-3 { grid-column: span 1; grid-row: span 2; }
.g-4 { grid-column: span 1; grid-row: span 1; }
.g-5 { grid-column: span 1; grid-row: span 1; }
.g-6 { grid-column: span 2; grid-row: span 1; }

@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-1 { grid-column: span 2; grid-row: span 1; }
  .g-3 { grid-column: span 1; grid-row: span 1; }
  .g-6 { grid-column: span 2; }
}

/* ============== ABLAUF ============== */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 36px 28px 32px;
  background: rgba(245, 239, 228, 0.05);
  border: 1px solid rgba(245, 239, 228, 0.12);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.steps li:hover {
  background: rgba(201, 138, 75, 0.08);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

.steps h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #f5efe4;
}
.steps p {
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============== KONTAKT ============== */

.split-contact { align-items: start; }

.contact-rows {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}
.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }

.cr-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  padding-top: 2px;
}
.cr-value {
  font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.4;
}
.cr-link { transition: color 0.2s; }
.cr-link:hover { color: var(--primary); }

.form {
  background: #faf6ec;
  padding: 44px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form label span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}
.form input, .form select, .form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  background: #f5efe4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--dark);
  transition: border-color 0.2s, background 0.2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #faf6ec;
}
.form textarea { resize: vertical; min-height: 110px; }
.form button { margin-top: 8px; }

.form-ok {
  background: rgba(110, 138, 70, 0.12);
  border: 1px solid rgba(110, 138, 70, 0.3);
  color: #4d6230;
  padding: 12px 16px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .form { padding: 32px 24px; }
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ============== FUSSZEILE ============== */

.footer {
  background: var(--darker);
  color: rgba(232, 220, 196, 0.7);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #f5efe4;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a:hover { color: var(--accent); }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}
.footer-legal small {
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(232, 220, 196, 0.5);
}
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { text-align: left; }
}

/* ============== IMPRESSUM / DATENSCHUTZ ============== */

.legal {
  padding: 120px 0 80px;
}
.legal h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 10px;
  color: var(--primary);
}
.legal p, .legal li {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 8px;
  line-height: 1.7;
}
.legal ul { padding-left: 22px; }
.legal a { color: var(--primary); text-decoration: underline; }
