/*
Theme Name: Castle-Hill Pipers
Theme URI: https://example.de
Description: Klassisches WordPress-Theme für die Dudelsackband Castle-Hill Pipers e.V. in Rot und Grau.
Author: Castle-Hill Pipers e.V.
Version: 1.0
Text Domain: castle-hill-pipers
*/

:root {
  --red: #B3202A;
  --red-dark: #8A1820;
  --grey: #6E6E6E;
  --grey-dark: #2B2B2B;
  --grey-light: #EEEEEE;
  --white: #FFFFFF;
  --max: 1100px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.6;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Trebuchet MS", "Helvetica", sans-serif; color: var(--grey-dark); line-height: 1.2; }
h2 { border-bottom: 3px solid var(--red); padding-bottom: .3em; display: inline-block; }

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

/* Header */
.site-header {
  background: var(--grey-dark);
  color: var(--white);
  border-bottom: 6px solid var(--red);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-branding img { height: 64px; width: auto; border-radius: 4px; background: var(--white); padding: 2px; }
.site-title { font-family: "Trebuchet MS", sans-serif; font-size: 1.4rem; font-weight: bold; color: var(--white); }
.site-title a { color: var(--white); }
.site-title a:hover { text-decoration: none; color: var(--grey-light); }

.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.main-nav a {
  color: var(--white); padding: 8px 14px; border-radius: 3px;
  font-family: "Trebuchet MS", sans-serif; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem;
}
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--red); text-decoration: none; color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--grey-dark) 0%, #444 60%, var(--red-dark) 100%);
  color: var(--white); text-align: center; padding: 70px 20px 60px;
}
.hero img { width: 220px; max-width: 60%; background: var(--white); border-radius: 8px; padding: 8px; margin-bottom: 20px; }
.hero h1 { color: var(--white); font-size: 2.4rem; margin: 0 0 10px; }
.hero p { font-size: 1.15rem; max-width: 680px; margin: 0 auto 26px; color: var(--grey-light); }
.btn {
  display: inline-block; background: var(--red); color: var(--white) !important;
  padding: 12px 26px; border-radius: 3px; font-family: "Trebuchet MS", sans-serif;
  text-transform: uppercase; letter-spacing: .05em; margin: 4px;
}
.btn:hover { background: var(--red-dark); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--grey-dark) !important; }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--grey-light); }
section.block h2 { margin-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 28px; }
.card {
  background: var(--white); border-top: 4px solid var(--red);
  padding: 24px; box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.card h3 { margin-top: 0; color: var(--red); }

.posts .entry { border-bottom: 1px solid #ccc; padding: 22px 0; }
.posts .entry h2 { border: none; display: block; font-size: 1.4rem; }
.entry-meta { color: var(--grey); font-size: .9rem; }

.page-content { padding: 48px 0; min-height: 50vh; }
.page-content h1 { border-bottom: 3px solid var(--red); display: inline-block; padding-bottom: .3em; }

/* Footer */
.site-footer {
  background: var(--grey-dark); color: var(--grey-light);
  border-top: 6px solid var(--red); padding: 36px 0; font-size: .95rem;
}
.site-footer a { color: var(--white); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-menu ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .hero h1 { font-size: 1.8rem; }
  .site-branding img { height: 52px; }
}
