/* === Residenz Hofgarten Würzburg - Custom Template === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #b8924a;
  --gold-dark: #8a6a2e;
  --cream: #f8f3e7;
  --bordeaux: #6b1e2e;
  --dark: #2a2620;
  --text: #3a3530;
  --light-bg: #fdfbf5;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.7;
  font-size: 17px;
}

/* === HEADER === */
.top-bar {
  background: var(--dark);
  color: var(--cream);
  padding: 8px 0;
  font-size: 13px;
  letter-spacing: 1px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header.main-header {
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
  padding: 25px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.logo a {
  text-decoration: none;
  color: var(--bordeaux);
}
.logo h1 {
  font-size: 28px;
  font-weight: normal;
  letter-spacing: 2px;
  font-family: 'Georgia', serif;
}
.logo span {
  display: block;
  font-size: 12px;
  color: var(--gold-dark);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 4px;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  flex-wrap: wrap;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--bordeaux);
  border-bottom-color: var(--gold);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, rgba(42,38,32,0.7), rgba(107,30,46,0.6)),
              url('https://images.unsplash.com/photo-1564661048077-3c8b1d3d4f1d?w=1600') center/cover;
  background-color: #4a3525;
  color: var(--cream);
  padding: 100px 20px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(184,146,74,0.5);
  pointer-events: none;
}
.hero h1 {
  font-size: 48px;
  font-weight: normal;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero p.subtitle {
  font-size: 20px;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  letter-spacing: 1px;
}
.ornament {
  display: block;
  margin: 25px auto;
  width: 120px;
  height: 1px;
  background: var(--gold);
  position: relative;
}
.ornament::before {
  content: '❦';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: inherit;
  color: var(--gold);
  font-size: 18px;
  padding: 0 10px;
}
.hero .ornament { background: transparent; }
.hero .ornament::before { background: transparent; }

/* === CONTENT === */
main.content {
  padding: 70px 0;
}
article h1 {
  font-size: 36px;
  color: var(--bordeaux);
  font-weight: normal;
  margin-bottom: 25px;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 15px;
}
article h2 {
  font-size: 26px;
  color: var(--gold-dark);
  font-weight: normal;
  margin: 40px 0 18px;
  letter-spacing: 0.5px;
}
article p {
  margin-bottom: 20px;
  text-align: justify;
}
article ul, article ol {
  margin: 20px 0 25px 30px;
}
article li {
  margin-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
table th {
  background: var(--bordeaux);
  color: var(--cream);
  padding: 14px;
  text-align: left;
  font-weight: normal;
  letter-spacing: 1px;
}
table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}
table tr:nth-child(even) td { background: #faf6ec; }

/* === GRID LAYOUT === */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}
aside.sidebar {
  background: var(--cream);
  padding: 30px;
  border-left: 4px solid var(--gold);
}
aside.sidebar h3 {
  color: var(--bordeaux);
  font-weight: normal;
  font-size: 20px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
aside.sidebar ul {
  list-style: none;
  margin: 0;
}
aside.sidebar li {
  padding: 10px 0;
  border-bottom: 1px dotted #d4c8a8;
}
aside.sidebar a {
  color: var(--dark);
  text-decoration: none;
  font-size: 15px;
}
aside.sidebar a:hover { color: var(--bordeaux); }

/* === FEATURE CARDS === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}
.card {
  background: white;
  border: 1px solid #e8e0c8;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.card .icon {
  font-size: 40px;
  color: var(--gold);
  margin-bottom: 15px;
}
.card h3 {
  color: var(--bordeaux);
  font-weight: normal;
  font-size: 22px;
  margin-bottom: 12px;
}
.card p {
  font-size: 15px;
  color: #666;
  margin-bottom: 18px;
}
.card a.read-more {
  color: var(--gold-dark);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* === EXTERNAL LINKS SECTION === */
.partner-links {
  background: var(--cream);
  padding: 60px 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
.partner-links .section-title {
  text-align: center;
  font-size: 24px;
  color: var(--bordeaux);
  font-weight: normal;
  letter-spacing: 2px;
  margin-bottom: 40px;
  text-transform: uppercase;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.link-card {
  background: white;
  border: 1px solid #e0d4b4;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
}
.link-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.link-card .img-wrap {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f3e7, #ede0c0);
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 36px;
  color: var(--gold-dark);
}
.link-card h4 {
  font-size: 15px;
  color: var(--bordeaux);
  font-weight: normal;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.link-card p {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
  margin: 0;
}

/* === FOOTER === */
footer {
  background: var(--dark);
  color: var(--cream);
  padding: 50px 0 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 35px;
}
footer h4 {
  color: var(--gold);
  font-weight: normal;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(184,146,74,0.3);
  padding-bottom: 10px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a {
  color: #d4c8a8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
footer a:hover { color: var(--gold); }
footer p { font-size: 14px; color: #b8a888; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(184,146,74,0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p.subtitle { font-size: 16px; }
  .hero { padding: 60px 20px; }
  article h1 { font-size: 28px; }
  article h2 { font-size: 22px; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav.main-nav ul { gap: 15px; font-size: 13px; }
  nav.main-nav a { font-size: 13px; }
  .top-bar .container { flex-direction: column; gap: 5px; text-align: center; }
  .links-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .link-card { padding: 12px; }
  .link-card .img-wrap { height: 60px; font-size: 26px; margin-bottom: 8px; }
  .link-card h4 { font-size: 13px; }
  .link-card p { font-size: 11px; }
}
@media (max-width: 480px) {
  .links-grid { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
}
