/*
Theme Name: Seehandwerk
Theme URI: https://seehandwerk.de
Author: Seehandwerk
Description: Individuelles WordPress-Theme für Seehandwerk – traditioneller Holzbootbau, Reisen & Kurse.
Version: 1.0.0
Text Domain: seehandwerk
*/


/* ── Custom Properties ───────────────────────────────────────────────── */
:root {
  --navy:         #1a2744;
  --navy-dark:    #111c30;
  --text-on-navy: #d0d6dd;
  --accent:       #c9832a;
  --bg:           #f9f7f4;
  --bg-card:      #ffffff;
  --text:         #1e1e1e;
  --text-muted:   #5a5a5a;
  --radius:       6px;
  --max-w:        1100px;
  --gap:          1.5rem;
}

/* ── Reset / Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  line-height: 1.25;
  color: var(--navy);
}

/* ── Container ───────────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-block: 2rem;
}

/* ── Site Header ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-block: 1.1rem;
  gap: 1rem;
}

/* Logo */
.site-branding { display: flex; align-items: center; }
.site-branding__link { display: flex; align-items: center; gap: 1rem; text-decoration: none; }

.header-logo {
  height: 52px;
  width: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.65rem;
  font-weight: bold;
  color: var(--text-on-navy);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Primary Nav */
.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.primary-nav a {
  color: var(--text-on-navy);
  font-family: Helvetica, Arial, sans-serif;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 2px solid var(--text-on-navy);
  border-radius: var(--radius);
  padding: .4rem .6rem;
  cursor: pointer;
  color: var(--text-on-navy);
  font-size: 1.3rem;
  line-height: 1;
}

/* ── Site Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--text-on-navy);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-block: 2.5rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.footer-col p,
.footer-col address { font-style: normal; font-size: .9rem; line-height: 1.8; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col a { color: var(--text-on-navy); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

/* Social icons row */
.social-links { display: flex; gap: 1rem; margin-top: .5rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--text-on-navy);
  border-radius: 50%;
  color: var(--text-on-navy);
  font-size: .85rem;
  transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  padding-block: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

/* ── Main Content ────────────────────────────────────────────────────── */
main { flex: 1; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy-dark);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem;
  background-image: url('assets/img/hero-placeholder.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18,40,64,.72);
}
.hero-content { position: relative; max-width: 700px; margin-inline: auto; }

.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); color: #fff; margin-bottom: .5rem; }
.hero .hero-tagline {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
}
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 1.75rem; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: Helvetica, Arial, sans-serif;
  font-size: .9rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: #b06e20; text-decoration: none; }

/* ── Section Headings ────────────────────────────────────────────────── */
.section-heading {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* ── News Cards ──────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: 2rem;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card__img { width: 100%; height: 200px; object-fit: cover; background: #ccc; }
.news-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card__date { font-size: .8rem; color: var(--text-muted); margin-bottom: .4rem; }
.news-card__title { font-size: 1.15rem; margin-bottom: .6rem; color: var(--navy); }
.news-card__excerpt { font-size: .95rem; color: var(--text-muted); flex: 1; }
.news-card__link { margin-top: 1rem; align-self: flex-start; font-size: .9rem; font-weight: bold; }

/* ── Project Cards ───────────────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  overflow: hidden;
}

.project-card__img { width: 100%; height: 220px; object-fit: cover; background: #ccc; }
.project-card__body { padding: 1.25rem; }
.project-card__meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .4rem; }
.project-card__title { font-size: 1.2rem; color: var(--navy); margin-bottom: .5rem; }
.project-card__excerpt { font-size: .95rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item img, .gallery-grid figure {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .3s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

/* WP block gallery integration */
.wp-block-gallery { gap: .75rem !important; }
.wp-block-gallery .wp-block-image img {
  border-radius: var(--radius);
  object-fit: cover;
}

/* ── Contact Form ────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-info h2, .contact-form h2 { margin-bottom: 1rem; }
.contact-info p { line-height: 2; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--navy); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group--checkbox label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.form-group--checkbox input[type="checkbox"] { width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--navy); }

/* ── Form Notices ────────────────────────────────────────────────────── */
.form-notice {
  padding: .9rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.form-notice--ok    { background: #e6f4ea; border-left: 4px solid #2e7d32; color: #1b5e20; }
.form-notice--error { background: #fdecea; border-left: 4px solid #c62828; color: #7f0000; }

/* ── Team Members (Über uns) ─────────────────────────────────────────── */
.team-member {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-block: 2rem;
}

.team-member__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--text-on-navy);
  font-size: 1.8rem;
  font-family: Georgia, serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member__bio h2 { margin-bottom: .25rem; font-size: 1.4rem; }

.team-member__role {
  font-size: .9rem;
  color: var(--accent);
  margin-bottom: .9rem;
  font-style: italic;
}

.team-member__bio p { margin-bottom: .75rem; }

.team-divider {
  border: none;
  border-top: 1px solid #e8e4de;
  margin: 0;
}

@media (max-width: 540px) {
  .team-member { flex-direction: column; gap: 1rem; }
}

/* ── Btn Outline Variant ─────────────────────────────────────────────── */
.btn--outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ── Generic Page Content ────────────────────────────────────────────── */
.page-content { max-width: 780px; }
.page-content h1 { margin-bottom: 1.5rem; }
.page-content h2 { margin-top: 2rem; margin-bottom: .75rem; font-size: 1.3rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin-left: 1.5rem; margin-bottom: 1rem; }

/* ── Single Post ─────────────────────────────────────────────────────── */
.post-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.post-meta { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }
.post-content { max-width: 780px; }
.post-content p { margin-bottom: 1rem; }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.error-404 { text-align: center; padding: 5rem 1rem; }
.error-404 h1 { font-size: 5rem; color: var(--navy); }
.error-404 p { font-size: 1.2rem; margin-bottom: 2rem; }

/* ── Block Editor Alignment ──────────────────────────────────────────── */
.alignwide  { margin-inline: calc(-5%); }
.alignfull  { margin-inline: calc(-5vw); width: 100vw; max-width: none; }

/* ── Responsive – 720px ──────────────────────────────────────────────── */
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
  .news-grid    { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr 1.4fr; }

  /* Desktop: show nav, hide hamburger */
  .hamburger { display: none; }
  .primary-nav { display: block !important; }
}

@media (min-width: 960px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile Nav ──────────────────────────────────────────────────────── */
@media (max-width: 719px) {
  .hamburger { display: block; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
  }

  .primary-nav.open { display: block; }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .primary-nav ul li a {
    display: block;
    padding: .85rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .site-header { position: relative; }
}
