/* ===== Martin – Fotograf & Drohnenpilot ===== */
:root {
  --bg: #f7f5f2;
  --ink: #16181d;
  --muted: #5d6370;
  --accent: #d98c3f;
  --accent-dark: #b86f27;
  --dark: #101318;
  --dark-2: #1a1f27;
  --line: #e3dfd8;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Platzhalter, solange noch kein Foto im Ordner "bilder" liegt */
  --ph: linear-gradient(135deg, #2b3a4a 0%, #4a6178 45%, #c7925a 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--dark { background: var(--dark); color: #eef0f3; }
.section--tint { background: #efeae3; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .8em; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: .9em 1.6em; border-radius: 999px; font-weight: 600; border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 600; transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--small { padding: .5em 1.1em; font-size: .92rem; }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; color: #fff; }
.nav.is-scrolled { background: rgba(16,19,24,.92); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,.2); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: .7rem; }
.logo__img { height: 58px; width: auto; -webkit-mask-image: radial-gradient(ellipse 48% 48% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 48% 48% at 50% 50%, #000 70%, transparent 100%); }
.logo__text { font-weight: 800; font-size: 1.35rem; display: flex; flex-direction: column; line-height: 1.1; }
.logo__text small { font-weight: 500; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.hero__logo { width: min(420px, 80%); margin: 0 0 1.5rem -1.5rem; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.nav__links { display: flex; gap: 1.8rem; align-items: center; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; opacity: .85; }
.nav__links a:not(.btn):hover { opacity: 1; color: var(--accent); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: heroZoom 18s ease-out forwards; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.35) 50%, rgba(10,12,16,.8) 100%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { position: relative; padding-top: 72px; max-width: 760px; margin-left: max(4%, calc((100% - 1160px) / 2)); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); opacity: .9; max-width: 600px; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 22px; } }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22,24,29,.08); }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: #fbeee0; display: grid; place-items: center; margin-bottom: 1.2rem; }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Portfolio */
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 2rem; }
.filter__btn { background: transparent; color: #cfd3da; border: 1px solid #3a414c; padding: .5em 1.2em; border-radius: 999px; cursor: pointer; font: inherit; font-size: .92rem; transition: .2s; }
.filter__btn:hover { border-color: var(--accent); color: #fff; }
.filter__btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; grid-auto-flow: dense; gap: 12px; }
.gallery__item { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; cursor: zoom-in; transition: opacity .35s, transform .35s; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7)); opacity: 0; transition: opacity .3s; }
.gallery__item figcaption { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; font-weight: 600; opacity: 0; transform: translateY(8px); transition: .3s; }
.gallery__item:hover::after, .gallery__item:hover figcaption { opacity: 1; transform: none; }
.gallery__item.is-hidden { display: none; }
.gallery__item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__item--video::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50%/45% no-repeat; border: 2px solid rgba(255,255,255,.8); transition: opacity .3s; pointer-events: none; }
.gallery__item--video:hover::before { opacity: 0; }
.lightbox video { max-height: 82vh; max-width: 100%; border-radius: 8px; display: none; }
.lightbox.is-video video { display: block; }
.lightbox.is-video img { display: none; }

/* Über mich */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__img { aspect-ratio: 4/5; border-radius: var(--radius); background-size: cover; background-position: center; box-shadow: 24px 24px 0 #efe2d2; }
.about p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checks li { padding-left: 2rem; position: relative; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { position: relative; }
.steps span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); }
.contact > div > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact__list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.contact__list a { text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.contact__list a:hover { color: var(--accent); }
.soon { display: inline-block; margin-top: .3rem; font-size: .85rem; font-weight: 600; color: var(--accent-dark); background: #fbeee0; padding: .15em .7em; border-radius: 99px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .75em .9em; border: 1px solid #d6d1c9; border-radius: 8px; background: #fcfbf9; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form__check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.form__check input { width: auto; margin-top: .3em; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-weight: 600; }
.form__status.ok { color: #2e7d4f; }
.form__status.err { color: #b3261e; }
.hp { position: absolute !important; left: -9999px; }

/* Footer */
.footer { background: var(--dark); color: #aab0ba; padding: 2rem 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,13,.94); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 4vh 4vw; color: #fff; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; border-radius: 8px; }
.lightbox p { margin-top: 1rem; opacity: .8; }
.lightbox__close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; }

/* Unterseiten (Impressum / Datenschutz) */
.legal { padding: 120px 0 5rem; }
.legal .container { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal p, .legal li { color: #3c414b; }
.nav--solid { background: var(--dark); }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
}
@media (max-width: 760px) {
  .logo__img { height: 46px; }
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 72px 0 auto; background: rgba(16,19,24,.97); flex-direction: column; padding: 1.5rem; gap: 1.2rem; transform: translateY(-120%); transition: transform .35s; }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open { background: rgba(16,19,24,.97); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item--tall { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
