/*
Theme Name: Golfschule Hermann Breidbach
Theme URI: https://example.com/
Author: OpenAI
Description: Responsives WordPress-Theme nach der bereitgestellten Gestaltungsvorlage der Golfschule Hermann Breidbach.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
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: golfschule-breidbach
Tags: custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

:root {
  --golf-green: #008f32;
  --golf-lime: #82a900;
  --text: #55565a;
  --muted: #77787b;
  --footer: #dedde1;
  --content-width: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
a { color: var(--golf-green); text-decoration: none; }
a:hover, a:focus { color: #006d27; text-decoration: underline; }
img { max-width: 100%; height: auto; }
.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 2px solid var(--golf-green);
  position: relative;
  z-index: 20;
}
.header-inner {
  width: min(var(--content-width), calc(100% - 48px));
  min-height: 130px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.site-branding { flex: 0 0 auto; text-align: center; }
.site-title {
  display: block;
  color: #555;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.35px;
}
.site-title:hover { color: #555; text-decoration: none; }
.site-description { margin: 4px 0 0; color: #555; font-size: 15px; }
.custom-logo-link { display: inline-block; }
.custom-logo { display: block; max-height: 76px; width: auto; }
.primary-navigation { margin-left: auto; }
.primary-navigation ul {
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 38px); list-style: none; padding: 0; margin: 0;
}
.primary-navigation a {
  color: #55565a; font-size: 14px; font-weight: 700; white-space: nowrap;
  display: block; padding: 12px 0;
}
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { color: var(--golf-green); }
.menu-toggle {
  display: none; border: 1px solid #d7d7d7; background: #fff; color: #444;
  border-radius: 4px; padding: 9px 12px; font: inherit; cursor: pointer;
}
.menu-toggle .bars { display: inline-block; width: 19px; height: 13px; margin-right: 7px; vertical-align: -2px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-toggle .bars:after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid currentColor; }
.hero {
  min-height: clamp(390px, 47vw, 830px);
  background-color: #54732a;
  background-image: linear-gradient(90deg, rgba(0,0,0,.04), rgba(0,0,0,0)), var(--hero-image);
  background-size: cover; background-position: center 54%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-content {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto; color: #fff; text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero h1 { font-size: clamp(30px, 4.3vw, 58px); line-height: 1.1; margin: 0 0 14px; color: #fff; }
.hero p { font-size: clamp(16px, 1.7vw, 22px); margin: 0; }
.hero-empty { min-height: 0; }
.intro {
  max-width: 1240px; margin: 0 auto; padding: 32px 24px 24px;
  text-align: center; font-size: 15px; line-height: 1.8;
}
.intro p { margin: 0 0 3px; }
.intro .signature { margin-top: 23px; }
.features {
  max-width: 1120px; margin: 0 auto; padding: 22px 24px 38px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px;
}
.feature { text-align: center; }
.feature-link { display: inline-flex; flex-direction: column; align-items: center; color: var(--text); }
.feature-link:hover { color: var(--golf-green); text-decoration: none; }
.feature-icon {
  width: 205px; height: 205px; border-radius: 50%; background: var(--golf-lime);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform .2s ease, background .2s ease;
}
.feature-link:hover .feature-icon { transform: translateY(-4px); background: #729700; }
.feature-icon svg { width: 112px; height: 112px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.feature h2 { margin: 17px 0 0; font-size: 19px; line-height: 1.3; font-weight: 400; }
.site-footer { background: var(--footer); color: #55565a; font-size: 12px; }
.footer-inner {
  max-width: var(--content-width); width: calc(100% - 48px); min-height: 56px;
  margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-links { display: flex; gap: 30px; align-items: center; }
.footer-links a { color: #55565a; }
.footer-links .separator { color: #777; }
.content-area { max-width: 1000px; width: calc(100% - 48px); margin: 55px auto 70px; min-height: 42vh; }
.content-area h1, .content-area h2 { color: #4e5052; font-weight: 500; line-height: 1.25; }
.content-area h1 { font-size: clamp(28px, 4vw, 42px); }
.content-area h2 { font-size: 27px; margin-top: 1.6em; }
.content-area .entry-meta { color: var(--muted); font-size: 13px; }
.content-area .entry-content { font-size: 16px; }
.page-links { margin-top: 25px; }
.navigation-posts { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 980px) {
  .header-inner { min-height: 104px; gap: 20px; }
  .site-title { font-size: 19px; }
  .primary-navigation ul { gap: 16px; }
  .primary-navigation a { font-size: 13px; }
  .feature-icon { width: 175px; height: 175px; }
  .feature-icon svg { width: 95px; height: 95px; }
  .features { gap: 35px; }
}
@media (max-width: 760px) {
  .header-inner { width: calc(100% - 36px); min-height: 82px; flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .site-branding { text-align: left; max-width: calc(100% - 65px); }
  .site-title { font-size: 18px; }
  .site-description { font-size: 13px; }
  .custom-logo { max-height: 54px; }
  .menu-toggle { display: block; margin-left: auto; }
  .primary-navigation { display: none; flex: 0 0 100%; width: 100%; margin: 0; }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 7px 0 4px; }
  .primary-navigation li { border-top: 1px solid #eee; }
  .primary-navigation a { padding: 11px 4px; font-size: 15px; }
  .hero { min-height: 390px; background-position: center; }
  .hero-content { width: calc(100% - 36px); }
  .intro { padding: 25px 20px 16px; font-size: 14px; }
  .features { grid-template-columns: 1fr; gap: 30px; padding: 18px 20px 34px; }
  .feature-icon { width: 155px; height: 155px; }
  .feature-icon svg { width: 86px; height: 86px; }
  .feature h2 { margin-top: 12px; font-size: 18px; }
  .footer-inner { width: calc(100% - 36px); padding: 14px 0; flex-direction: column; justify-content: center; gap: 7px; text-align: center; }
  .footer-links { gap: 16px; }
  .content-area { width: calc(100% - 36px); margin: 35px auto 50px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.page-hero { width: 100%; }
.page-hero-image { display: block; width: 100%; height: clamp(220px, 32vw, 520px); object-fit: cover; object-position: center; }
.page-content { min-height: 0; margin-top: 36px; margin-bottom: 48px; }
.page-content h1 { margin-top: 0; }
