/*
Theme Name: Naturschutz Luck
Theme URI:
Author: Hannes Luck
Description: Onepage-Theme für das naturschutzfachliche Gutachterbüro von Hannes Luck – Natur, Schutz, Planung.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naturschutz-luck
*/

/* ---------- Grundlagen ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.nl-wrap { max-width: 1160px; margin-left: auto !important; margin-right: auto !important; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
[id] { scroll-margin-top: 90px; }

/* Kleine Abschnittsüberschrift in Ocker */
.nl-eyebrow { margin: 0 0 24px !important; font-family: var(--wp--preset--font-family--inter) !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--ocker) !important; }

/* Listen mit Gedankenstrich */
.nl-dash { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.nl-dash li { position: relative; padding-left: 28px; margin: 0; }
.nl-dash li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--wp--preset--color--ocker); font-weight: 700; }
.nl-dash a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kopfzeile ---------- */
.nl-header { background: var(--wp--preset--color--grund); border-bottom: 1px solid var(--wp--preset--color--linie); position: sticky; top: 0; z-index: 50; }
.nl-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.nl-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--wp--preset--color--tinte) !important; }
.nl-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nl-brand-name { font-family: var(--wp--preset--font-family--archivo); font-weight: 700; font-size: 17px; }
.nl-brand-sub { font-size: 13px; color: #4A5A53; }
.nl-nav { font-size: 15px; font-weight: 500; gap: 6px 22px; }
.nl-nav a { text-decoration: none; }
.nl-nav .wp-block-navigation-item:last-child a { background: var(--wp--preset--color--wald); color: #fff !important; padding: 10px 18px; border-radius: 6px; }
.nl-nav .wp-block-navigation-item:last-child a:hover { background: #163028; }

/* ---------- Startbereich ---------- */
.nl-hero { padding-top: 72px; padding-bottom: 64px; }
.nl-hero .wp-block-columns { gap: 48px; align-items: center; margin: 0; }
.nl-h1 { margin: 0 0 22px !important; font-size: clamp(40px, 6vw, 60px) !important; line-height: 1.05 !important; letter-spacing: -0.01em; color: var(--wp--preset--color--wald) !important; }
.nl-sub { margin: 0 0 22px !important; font-family: var(--wp--preset--font-family--archivo); font-weight: 700; font-size: 26px !important; line-height: 1.25; }
.nl-expertise-label { margin: 0 0 10px !important; font-weight: 600; font-size: 19px !important; }
.nl-expertise { gap: 8px 40px !important; margin: 0 0 22px !important; font-size: 19px; color: var(--wp--preset--color--grau); }
.nl-expertise .wp-block-column { flex: 0 0 auto !important; }
.nl-expertise .nl-dash { white-space: nowrap; }
.nl-hero-img { margin: 0; text-align: center; }
.nl-hero-img img { width: 420px; max-width: 100%; height: auto; }
.nl-hero-img figcaption { font-size: 14px; font-style: italic; color: #4A5A53; margin-top: 14px; }
.nl-buttons { gap: 12px; padding-top: 6px; }
.nl-buttons .wp-block-button__link { padding: 14px 24px; font-weight: 600; }
.nl-buttons .is-style-outline .wp-block-button__link { border: 1.5px solid var(--wp--preset--color--wald); color: var(--wp--preset--color--wald); background: transparent; }

/* ---------- Leistungen ---------- */
.nl-leistungen { padding-top: 64px; padding-bottom: 40px; }
.nl-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.nl-card { flex: 1 1 320px; background: #fff; border: 1px solid var(--wp--preset--color--linie); border-radius: 10px; padding: 28px; box-sizing: border-box; color: var(--wp--preset--color--grau); }
.nl-card.nl-card-wide { flex-basis: 100%; }
.nl-card > * { margin: 0 0 10px !important; }
.nl-card > *:last-child { margin-bottom: 0 !important; }
.nl-card h3 { font-size: 21px !important; font-weight: 700 !important; color: var(--wp--preset--color--tinte); }
.nl-card .nl-dash { gap: 6px; }

/* ---------- Referenzen ---------- */
.nl-referenzen { padding-top: 72px; padding-bottom: 40px; }
.nl-ref { margin: 0; background: #fff; border: 1px solid var(--wp--preset--color--linie); border-radius: 10px; overflow-x: auto; }
.nl-ref table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.nl-ref th, .nl-ref td { border: 0 !important; padding: 14px 20px; text-align: left; vertical-align: top; }
.nl-ref thead { border: 0 !important; background: #EAF0E9; }
.nl-ref th { font-weight: 600; }
.nl-ref tbody tr { border-top: 1px solid #E3E8E2; }
.nl-ref td:last-child, .nl-ref th:last-child { white-space: nowrap; }

/* ---------- Über mich ---------- */
.nl-about { padding-top: 72px; padding-bottom: 72px; }
.nl-about .wp-block-columns { gap: 48px; align-items: flex-start; margin: 0; }
.nl-portrait img { border-radius: 10px; width: 100%; height: auto; display: block; }
.nl-portrait { margin: 0; }
.nl-about-h2 { margin: 0 0 18px !important; font-family: var(--wp--preset--font-family--archivo); font-weight: 800; font-size: 38px; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.nl-nutshell { font-family: var(--wp--preset--font-family--caveat); font-weight: 600; font-size: 40px; line-height: 1; color: var(--wp--preset--color--ocker); white-space: nowrap; transform: rotate(-3deg); display: inline-flex; align-items: flex-end; }
.nuts { display: inline-flex; align-items: flex-end; gap: 1px; margin-right: 5px; margin-bottom: 6px; }
.nuts svg { width: 6px; height: 6.5px; display: block; }
.screen-reader-text-inline { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nl-about .nl-dash { gap: 10px; color: var(--wp--preset--color--grau); margin-bottom: 0; }
.nl-block { margin-top: 28px !important; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--linie); }
.nl-block > p { margin: 0 0 12px !important; }
.nl-block-title { font-weight: 600; color: var(--wp--preset--color--tinte); }
.nl-iln { margin: 0; }
.nl-iln img { width: 300px; max-width: 100%; height: auto; }

/* ---------- Kontakt ---------- */
.nl-kontakt { background: var(--wp--preset--color--tinte); color: #fff; }
.nl-kontakt-inner { padding-top: 80px; padding-bottom: 80px; }
.nl-kontakt .wp-block-columns { gap: 40px; margin: 0; }
.nl-kontakt .nl-eyebrow { color: #E2B36E !important; margin-bottom: 14px !important; }
.nl-kontakt h2 { color: #fff; font-size: 38px !important; line-height: 1.15; margin: 0 0 14px !important; }
.nl-kontakt p { color: #C9D6CF; }
.nl-kontakt a { color: #E2B36E; }
.nl-form-platzhalter { border: 1.5px dashed #3E544B; border-radius: 6px; padding: 24px; }

/* Kontaktformular (Contact Form 7) */
.nl-kontakt .wpcf7 form { display: flex; flex-direction: column; gap: 14px; }
.nl-kontakt .wpcf7 p { margin: 0; }
.nl-kontakt .nl-form-row { display: flex; flex-wrap: wrap; gap: 14px; }
.nl-kontakt .nl-form-row > label { flex: 1 1 180px; }
.nl-kontakt .wpcf7 label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #C9D6CF; }
.nl-kontakt .wpcf7 input[type=text], .nl-kontakt .wpcf7 input[type=email], .nl-kontakt .wpcf7 textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 6px; border: 1px solid #3E544B; background: #22332C; color: #fff; width: 100%; box-sizing: border-box; }
.nl-kontakt .wpcf7 textarea { height: 140px; resize: vertical; }
.nl-kontakt .wpcf7-acceptance label { flex-direction: row; align-items: flex-start; gap: 10px; }
.nl-kontakt .wpcf7-acceptance input { width: 18px; height: 18px; margin-top: 3px; }
.nl-kontakt .wpcf7 input[type=submit] { align-self: flex-start; font: inherit; font-weight: 600; padding: 14px 28px; border: 0; border-radius: 6px; background: #fff; color: var(--wp--preset--color--tinte); cursor: pointer; }
.nl-kontakt .wpcf7 input[type=submit]:hover { background: #E3E8E2; }
.nl-kontakt .wpcf7-response-output { color: #fff; border-radius: 6px; margin: 4px 0 0 !important; }

/* ---------- Fußzeile ---------- */
.nl-footer { background: var(--wp--preset--color--tinte); color: #A9BBB2; border-top: 1px solid #2E4039; font-size: 14px; }
.nl-footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.nl-footer p { margin: 0; }
.nl-footer a { color: #D4E2DA; }
.nl-footer-links { display: flex; gap: 24px; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.nl-page { padding-top: 64px; padding-bottom: 80px; }
.nl-page .wp-block-post-title { font-size: 38px; margin-bottom: 24px; }
.nl-page .wp-block-post-content { max-width: 760px; }

@media (max-width: 781px) {
  .nl-hero { padding-top: 48px; }
  .nl-expertise .nl-dash { white-space: normal; }
  .nl-about-h2 { font-size: 32px; }
}
