/*
Theme Name: Hornnissen
Theme URI: https://staging2.hornnissen.de
Author: Hornnissen (KI-Staging-Nachbau)
Author URI: https://hornnissen.de
Description: Schlankes, handcodiertes Theme (ohne Elementor) fuer den Staging-Nachbau von hornnissen.de. Ein-Seiten-Portfolio-Look mit Hero-Slider, Projekt-Grid und eigenen Case-Study-Seiten pro Kunde.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hornnissen
*/

/* =========================================================
   0. Grundlagen / Custom Properties
   ========================================================= */
:root {
  --hn-gold: #bb7a00;
  --hn-gold-strong: #a06a00;
  --hn-gold-light: #e9b461;
  --hn-black: #0c0c0c;
  --hn-dark: #1a1a1a;
  --hn-text: #333333;
  --hn-muted: #6b6b6b;
  --hn-white: #ffffff;
  --hn-border: #e2e2e2;
  --hn-max-width: 1200px;
  --hn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--hn-font);
  color: var(--hn-text);
  background: var(--hn-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--hn-gold); }

.hn-container {
  max-width: var(--hn-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--hn-font);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--hn-black);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

ul.hn-plain { list-style: none; margin: 0; padding: 0; }

.hn-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--hn-gold);
  color: var(--hn-white);
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s ease;
}
.hn-btn:hover { background: var(--hn-gold-strong); color: var(--hn-white); }

.hn-section { padding: 72px 0; }
.hn-section--dark { background: var(--hn-black); color: #ddd; }
.hn-section--dark h2, .hn-section--dark h3 { color: var(--hn-white); }
.hn-section--tint { background: #faf7f1; }

.hn-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--hn-gold);
  margin-bottom: .6em;
  display: block;
}

/* =========================================================
   1. Header / Navigation
   ========================================================= */
.hn-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(187, 122, 0, .92);
}

.hn-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--hn-max-width);
  margin: 0 auto;
}

.hn-logo {
  font-size: 1.5rem;
  letter-spacing: .03em;
  color: var(--hn-black);
  text-transform: uppercase;
}
.hn-logo:hover { color: var(--hn-black); }
.hn-logo strong { font-weight: 800; }
.hn-logo span { font-weight: 300; }

.hn-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.hn-menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--hn-black);
  display: block;
}

.hn-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(340px, 100%);
  background: var(--hn-black);
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 90px 40px;
  z-index: 99;
}
.hn-nav.is-open { transform: translateX(0); }

.hn-nav ul { list-style: none; margin: 0; padding: 0; }
.hn-nav li { margin-bottom: 22px; }
.hn-nav a {
  color: var(--hn-white);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hn-nav a:hover, .hn-nav a.is-active { color: var(--hn-gold-light); }

.hn-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 98;
}
.hn-nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* =========================================================
   2. Hero-Slider (Startseite)
   ========================================================= */
.hn-slider {
  position: relative;
  height: 88vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--hn-black);
}

.hn-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .7s ease;
  display: flex;
  align-items: center;
}
.hn-slide.is-active { opacity: 1; }
.hn-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}
.hn-slide__content {
  position: relative;
  z-index: 2;
  max-width: var(--hn-max-width);
  margin: 0 auto;
  padding: 0 24px;
  color: var(--hn-white);
}
.hn-slide__content h1 { color: var(--hn-gold-light); }
.hn-slide__content p { color: #f1f1f1; font-size: 1.15rem; }

.hn-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(76, 55, 6, .62);
  border: 0;
  color: var(--hn-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hn-slider__nav:hover { background: rgba(76, 55, 6, .85); }
.hn-slider__nav--prev { left: 24px; }
.hn-slider__nav--next { right: 24px; }

.hn-slider__dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hn-slider__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--hn-white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hn-slider__dots button.is-active { background: var(--hn-gold-light); border-color: var(--hn-gold-light); }

/* =========================================================
   3. Projekt-Grid
   ========================================================= */
.hn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.hn-card {
  background: var(--hn-white);
  border: 1px solid var(--hn-border);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.hn-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.12); transform: translateY(-3px); }
.hn-card__img { aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.hn-card__img img { width: 100%; height: 100%; object-fit: cover; }
.hn-card__body { padding: 18px 20px 22px; }
.hn-card__body h3 { margin-bottom: .3em; }
.hn-card__body p { color: var(--hn-muted); font-size: .95rem; margin-bottom: 0; }
.hn-card__client { color: var(--hn-gold); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

/* =========================================================
   4. Case-Study Feature-Bloecke
   ========================================================= */
.hn-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hn-feature + .hn-feature { margin-top: 72px; }
.hn-feature__img img { border-radius: 2px; }
.hn-feature__fields {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
  color: #bbb;
  font-size: .92rem;
}
.hn-section--tint .hn-feature__fields { border-top-color: var(--hn-border); color: var(--hn-muted); }
.hn-feature:nth-child(even) .hn-feature__img { order: 2; }

@media (max-width: 780px) {
  .hn-feature { grid-template-columns: 1fr; }
  .hn-feature:nth-child(even) .hn-feature__img { order: 0; }
}

/* =========================================================
   5. Clients
   ========================================================= */
.hn-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hn-clients li {
  border: 1px solid var(--hn-border);
  padding: 10px 18px;
  font-size: .9rem;
  color: var(--hn-muted);
  border-radius: 2px;
}

/* =========================================================
   6. Standard-Seiten (page.php) / Kontakt / Projekt
   ========================================================= */
.hn-page-hero {
  background: var(--hn-black);
  color: var(--hn-white);
  padding: 90px 0 50px;
}
.hn-page-hero h1 { color: var(--hn-white); margin-bottom: 0; }

.hn-page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}
.hn-page-content h2 { margin-top: 1.4em; }
.hn-page-content a { color: var(--hn-gold); text-decoration: underline; }

.hn-project-hero img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }

.hn-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--hn-max-width);
  margin: 0 auto;
  padding: 70px 24px 100px;
}
.hn-contact-card {
  border: 1px solid var(--hn-border);
  padding: 30px;
}
.hn-contact-card h3 { color: var(--hn-gold); }
.hn-contact-address p { margin-bottom: .3em; }

@media (max-width: 780px) {
  .hn-contact-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   7. Footer
   ========================================================= */
.hn-footer {
  background: var(--hn-black);
  color: #bbb;
  padding: 46px 0;
  font-size: .9rem;
}
.hn-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.hn-footer nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.hn-footer a:hover { color: var(--hn-gold-light); }

/* placeholder marker used on placeholder attachments in admin, optional */
.hn-is-placeholder { outline: 2px dashed var(--hn-gold-light); outline-offset: -2px; }

/* =========================================================
   8. Kern-Block-Feinschliff (Gutenberg-Inhalte in the_content)
   ========================================================= */
.hn-page-content .wp-block-columns { gap: 32px; margin: 2em 0; }
.hn-page-content .wp-block-column {
  border: 1px solid var(--hn-border);
  padding: 26px 28px;
}
.hn-page-content .wp-block-column h2,
.hn-page-content .wp-block-column h3 { color: var(--hn-gold); margin-top: 0; }
.hn-page-content ul { padding-left: 1.2em; }
.hn-page-content blockquote {
  border-left: 3px solid var(--hn-gold);
  margin: 1.6em 0;
  padding-left: 1.2em;
  color: var(--hn-muted);
  font-style: italic;
}
