/* ==========================================
   MICHAEL VARELMANN – HOCHZEITSFOTOGRAFIE
   Responsive Website Stylesheet
   ========================================== */

:root {
  --cream: #f7f5ef;
  --white: #ffffff;
  --dark: #292c27;
  --green: #626d5b;
  --green-dark: #46513f;
  --light: #e8e8df;
  --muted: #595d55;
  --border: #d8d8ce;

  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;

  --container: 1160px;
}

/* ==========================================
   GLOBAL RESET
   ========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;

  background: var(--cream);
  color: var(--dark);

  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
  text-underline-offset: 4px;

  overflow-wrap: anywhere;
}

button,
input,
textarea,
select {
  font: inherit;
  max-width: 100%;
}

button {
  cursor: pointer;
}

/* Lange Wörter und URLs dürfen nichts verbreitern */

p,
li,
h1,
h2,
h3,
h4,
.card-content,
.prose {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  max-width: 100%;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  margin-top: 0;
}

h2 {
  font-size: clamp(1.9rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.eyebrow {
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: break-word;
}

.intro {
  max-width: 720px;
  margin: 20px auto;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

/* ==========================================
   LAYOUT
   ========================================== */

.container {
  width: min(90%, var(--container));
  max-width: 100%;
  margin-inline: auto;
}

.section {
  padding: 90px 0;
}

main,
header,
footer,
section {
  min-width: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 999;
  background: white;
  color: black;
  padding: 15px;
}

.skip-link:focus {
  top: 10px;
}

:focus-visible {
  outline: 3px solid #9a7439;
  outline-offset: 4px;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.nav-inner {
  max-width: var(--container);
  width: 90%;
  min-height: 82px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--serif);
  font-size: 23px;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}

.logo small {
  display: block;
  font: 10px var(--sans);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.nav-links a {
  font-size: 13px;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green-dark);
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  padding: 10px 14px;
}

/* ==========================================
   BUTTONS
   ========================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  max-width: 100%;

  padding: 13px 25px;

  background: var(--green-dark);
  color: white;

  border: 1px solid var(--green-dark);

  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;

  white-space: normal;
  overflow-wrap: break-word;

  transition: .2s;
}

.button:hover {
  background: var(--dark);
}

.button-light {
  background: transparent;
  border-color: white;
  color: white;
}

.button-light:hover {
  background: white;
  color: var(--dark);
}

/* ==========================================
   HERO
   ========================================== */

.hero {
  position: relative;
  min-height: 650px;

  display: grid;
  place-items: center;

  overflow: hidden;
  color: white;

  background: #34382f;
  text-align: center;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
}

.hero-content {
  position: relative;
  z-index: 1;

  width: 90%;
  max-width: 850px;

  padding: 80px 0;
  min-width: 0;
}

.hero h1 {
  margin: 20px 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero p {
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto 30px;
}

/* ==========================================
   GRID SYSTEM
   ========================================== */

.grid-2,
.grid-3 {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 25px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 > *,
.grid-3 > * {
  min-width: 0;
  max-width: 100%;
}

/* ==========================================
   IMAGE CARDS
   ========================================== */

.image-card {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  background: white;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s;
}

.image-card:hover img {
  transform: scale(1.025);
}

.card-content {
  padding: 25px;
  min-width: 0;
}

.card-content h2,
.card-content h3 {
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ==========================================
   ABOUT
   ========================================== */

.feature {
  background: var(--light);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 60px;
}

.about-grid > * {
  min-width: 0;
}

.about-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */

.service-card {
  background: white;
  padding: 30px;

  text-align: center;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  overflow: hidden;
}

.service-card h2,
.service-card h3 {
  display: block;

  width: 100%;
  max-width: 100%;

  margin: 0 0 18px;

  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.25;
  font-weight: 400;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.service-card p {
  max-width: 100%;
  color: var(--muted);
  overflow-wrap: break-word;
}

/* ==========================================
   FAQ
   ========================================== */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  min-width: 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  padding: 5px;

  overflow-wrap: break-word;
}

.faq-item p {
  color: var(--muted);
}

/* ==========================================
   FORMS
   ========================================== */

.form-grid {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;

  padding: 14px;

  background: white;
  border: 1px solid #aeb2a8;
  color: var(--dark);

  border-radius: 2px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
}

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.checkbox-row input {
  width: 20px;
  min-width: 20px;
  flex-shrink: 0;
  margin-top: 5px;
}

.checkbox-row label {
  min-width: 0;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================
   CONTENT PAGES
   ========================================== */

.page-header {
  padding: 85px 0;
  background: var(--light);
  text-align: center;
  overflow: hidden;
}

.page-header h1 {
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}

.prose {
  width: 100%;
  max-width: 850px;
  min-width: 0;
  margin: auto;
}

.prose h2 {
  margin-top: 45px;
  font-size: clamp(1.7rem, 4vw, 2rem);
  overflow-wrap: break-word;
}

.prose p,
.prose li {
  color: var(--muted);
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 55px 20px 25px;
  overflow: hidden;
}

footer h2 {
  overflow-wrap: break-word;
}

footer p {
  color: #e0e1d9;
}

.footer-connection {
  border-top: 1px solid #62675d;
  margin-top: 30px;
  padding-top: 25px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin: 30px 0;
}

.footer-links a {
  color: white;
  font-size: 13px;
}

.copyright {
  font-size: 12px;
  color: #d0d1c9;
}

/* ==========================================
   TABLETS
   ========================================== */

@media (max-width: 850px) {

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .nav-inner {
    position: relative;
  }

  .nav-links {
    display: none;

    position: absolute;
    top: 82px;
    left: -5.56%;

    width: 111.12%;
    max-width: 111.12%;

    padding: 15px 5%;

    background: var(--cream);
    border-bottom: 1px solid var(--border);

    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 13px 0;
    font-size: 16px;
    white-space: normal;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    padding: 25px;
  }

}

/* ==========================================
   SMARTPHONES
   ========================================== */

@media (max-width: 600px) {

  html,
  body {
    width: 100%;
    overflow-x: clip;
  }

  .container {
    width: 90%;
  }

  .section {
    padding: 65px 0;
  }

  h1 {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  h3 {
    font-size: 1.4rem;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    width: 90%;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .hero p {
    font-size: 16px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .service-card {
    width: 100%;
    padding: 25px 20px;
  }

  .service-card h2,
  .service-card h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .page-header {
    padding: 65px 0;
  }

  .page-header h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .footer-links {
    gap: 18px;
  }

}

/* ==========================================
   KLEINE SMARTPHONES
   ========================================== */

@media (max-width: 380px) {

  .logo {
    font-size: 19px;
  }

  .logo small {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .menu-toggle {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .service-card {
    padding: 22px 16px;
  }

}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

}
.image-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.image-grid figure {
  margin: 0;
  overflow: hidden;
}

.image-grid img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-grid img:hover {
  transform: scale(1.03);
}

.image-grid figcaption {
  padding-top: 12px;
  font-size: 15px;
}

/* SEO- und Fotogalerie-Ergänzungen */
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin: 18px 0;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.8vw, 3.7rem);
  line-height: 1.12;
  text-wrap: balance;
}
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}
.gallery-item {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
}
.gallery-item-wide {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item-wide img { aspect-ratio: 4 / 3; min-height: 100%; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item figcaption {
  padding: 13px 16px;
  color: var(--dark);
  font-family: var(--serif);
  font-size: 1.1rem;
}
@media (max-width: 850px) {
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .photo-gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gallery-item-wide { grid-column: auto; grid-row: auto; }
  .gallery-item img, .gallery-item-wide img { aspect-ratio: 4 / 3; min-height: 0; }
}

/* Layout ohne separates Porträtfoto: Text bleibt sauber zentriert. */
.about-grid > div:only-child {
  grid-column: 1 / -1;
  width: min(100%, 780px);
  margin-inline: auto;
}
