/*
 * Custom styles for SprachenDienste24
 *
 * This stylesheet defines the look and feel for the refreshed
 * SprachenDienste24 website. It uses a simple, modern layout with
 * responsive behaviour so that the site remains usable on mobile
 * devices. Colours were chosen to convey trust and professionalism,
 * while still referencing the corporate colours used on the original
 * site. Headings, links and buttons are styled consistently to
 * improve usability and accessibility.
 */

/* Use the same fonts as the reference site (sprachprofis.de). Lato is
   imported in various weights to match the headings and body text. */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;600;700&display=swap');

body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  /* Add a subtle blue frame along the top and bottom edges of the page. This
     reinforces the corporate colour while allowing the content area to use
     varied background images with gentle tints. */
  border-top: 6px solid #004080;
  border-bottom: 6px solid #004080;
}

/* Top bar with phone, email and language switcher */
.top-bar {
  background-color: #002855; /* dark blue */
  color: #ffffff;
  padding: 0.4em 1em;
  font-size: 0.9em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .contact-info a {
  color: #ffffff;
  text-decoration: none;
  margin-right: 1.5em;
}

.top-bar .lang-switch a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 0.5em;
}

/* Social icons in top bar */
.top-bar .social-icons a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 0.8em;
  font-weight: 600;
}
.top-bar .social-icons a:hover {
  text-decoration: underline;
}

/* Right container inside top bar for language and social links */
.top-bar .top-right {
  display: flex;
  align-items: center;
}
.top-bar .top-right > *:not(:first-child) {
  margin-left: 1em;
}

/* Navigation bar */
nav.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7em 1em;
  background-color: #ffffff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

nav.navbar .logo img {
  max-height: 60px;
}

nav.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav.navbar li {
  margin: 0 1em;
}

nav.navbar a {
  text-decoration: none;
  color: #004080; /* primary blue */
  font-weight: 600;
  transition: color 0.2s ease;
}

nav.navbar a:hover {
  color: #0066A3; /* lighter blue on hover */
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  /* Reduce the hero section height so the background image area appears
     slimmer and more balanced. */
  /* Further reduce hero section height for a more compact appearance */
  padding: 3.5em 1em;
}

/* dark overlay over hero image for contrast */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Apply a semi-transparent colour overlay to the hero images. Instead of
     darkening the image uniformly, use a deep blue tint with lower opacity
     to give each background image a discreet coloured veil. This allows the
     underlying photography to remain visible while maintaining legibility of
     text placed on top. */
  /* Use a neutral semi-transparent overlay to reduce the emphasis on blue in
     background images while maintaining legibility. */
  background: rgba(0, 0, 0, 0.25);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 1em;
}

.btn-primary {
  background-color: #004080;
  color: #ffffff;
  padding: 0.8em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #0066A3;
}

/* Generic sections */
.section {
  padding: 3em 1em;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  /* Heading colour changed to primary blue for a cohesive look */
  color: #004080;
  margin-bottom: 1em;
  font-size: 2em;
  font-weight: 700;
}

/* Languages section */
.languages .lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.lang-box {
  flex: 1 1 220px;
  background: #F7F7F7;
  padding: 1em;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #002855;
  color: #ffffff;
  padding: 2em 1em;
  font-size: 0.9em;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer .columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
}

.footer .column {
  flex: 1 1 200px;
}

.footer h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 700;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #002855;
  color: #ffffff;
  padding: 1em;
  display: none;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9em;
  z-index: 9999;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
}

.cookie-banner .actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.5em;
  margin-left: 1em;
}

.cookie-banner button {
  background: #0066A3;
  color: #ffffff;
  border: none;
  padding: 0.5em 1em;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.9em;
}

.cookie-banner button:hover {
  background: #0085CC;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  nav.navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  nav.navbar ul {
    flex-direction: column;
    width: 100%;
    margin-top: 0.5em;
  }
  nav.navbar li {
    margin: 0.5em 0;
  }
  .hero {
    padding: 2.5em 1em;
  }
  .hero h1 {
    font-size: 2em;
  }
  .section {
    padding: 2em 1em;
  }
}

/* About page content layout */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
}
/* Reduce the size of the portrait on the "Über uns" page so it doesn't dominate the text. */
/*
 * Reduce the size of the portrait on the "Über uns" page further so it does
 * not dominate the text. The max-width is lowered to 180px and the image is
 * allowed to scale down responsively on smaller screens.
 */
/*
 * Reduce the size of the portrait on the "Über uns" page further so
 * that it complements the surrounding text rather than dominating it. A
 * smaller maximum width of 150px keeps the layout neat on all screen
 * sizes while maintaining aspect ratio. The image will shrink
 * responsively on narrower screens.
 */
.about-content img {
  max-width: 150px;
  width: 100%;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Social network icons in the top bar are displayed as images. Use a small height
   and align them with the text. */
.top-bar .social-icons img {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.25em;
}

/* Flag icons for the language switcher. These are slightly smaller than the
   social icons so they fit neatly in line with the text labels. */
.lang-switch img {
  height: 16px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.3em;
}

/* Screen reader only text. This class hides text visually but keeps it
   accessible to assistive technologies. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Blink animation for call-to-action buttons. The blink effect draws the
   visitor’s attention to important links, such as the price calculator link
   on the home page. */
@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
.blink {
  animation: blink 1.2s step-start infinite;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-content img {
    margin-bottom: 1em;
  }
}
/* === Mobile-Optimierungen === */
:root{ --tap: 44px; }

button, .cta, input, select, textarea, a.button{ min-height: var(--tap); }

/* Fluid-Typo */
@media (max-width: 900px){ html{ font-size:96%; } }
@media (max-width: 720px){ html{ font-size:92%; } }

/* Bilder responsiv */
img{ max-width:100%; height:auto; }

/* Hamburger-Navigation */
.mobile-toggle{
  display:none; background:none; border:none; width:var(--tap); height:var(--tap); border-radius:10px;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width:860px){
  .nav{ 
    display:none; position:absolute; top:64px; right:4%; left:4%; background:#fff;
    border:1px solid #eee; border-radius:12px; padding:0.75rem;
    box-shadow:0 8px 30px rgba(0,0,0,.06);
  }
  .nav a{ display:block; padding:.6rem .4rem; }
  .site-header .nav.open{ display:block; }
  .mobile-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav-grid{ position:relative; }
}

/* Grids auf 1 Spalte */
@media (max-width:720px){ .grid{ grid-template-columns:1fr !important; } }

/* Besser sichtbarer Fokus & reduzierte Bewegungen */
:focus-visible{ outline:2px dashed #0ea5a0; outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ *{ animation:none!important; transition:none!important; } }
